From 928cb574487360929eb576301432267d883f7e2e Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Fri, 5 Nov 2021 16:58:22 +0100 Subject: [PATCH] fix wrong bcname string pointer --- libsrc/occ/occgenmesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp index e24eccb8..98b248cf 100644 --- a/libsrc/occ/occgenmesh.cpp +++ b/libsrc/occ/occgenmesh.cpp @@ -411,7 +411,7 @@ namespace netgen Vec<4> col = OCCGeometry::global_shape_properties[face.TShape()].col.value_or(Vec<4>(0,1,0,1)); mesh.GetFaceDescriptor(facenr).SetSurfColour(col); - if(auto opt_name = geom.fprops[facenr-1]->name) + if(auto & opt_name = geom.fprops[facenr-1]->name) mesh.GetFaceDescriptor(facenr).SetBCName(&*opt_name); mesh.GetFaceDescriptor(facenr).SetBCProperty(facenr); // ACHTUNG! STIMMT NICHT ALLGEMEIN (RG)