fix wrong bcname string pointer

This commit is contained in:
mhochsteger@cerbsim.com 2021-11-05 16:58:22 +01:00
parent 8efcd93db6
commit 928cb57448

View File

@ -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)