Fix dangling reference in PropagateProperties()

Other GetProperties() calls push_back new elements to global_shape_properties
-> memory reallocation
This commit is contained in:
Matthias Hochsteger 2023-01-12 14:54:56 +01:00
parent 26d12898a6
commit 9f2daabc0f

View File

@ -537,7 +537,7 @@ namespace netgen
have_identifications |= OCCGeometry::HaveIdentifications(s);
if(!OCCGeometry::HaveProperties(s))
continue;
auto & prop = OCCGeometry::GetProperties(s);
auto prop = OCCGeometry::GetProperties(s);
for (auto mods : builder.Modified(s))
OCCGeometry::GetProperties(mods).Merge(prop);
}