propagate properties correctly in occgeom.Glue

This commit is contained in:
Christopher Lackner 2024-09-16 09:59:42 +02:00
parent fe5a3acc8b
commit 827b02d94c

View File

@ -416,16 +416,7 @@ namespace netgen
} }
#endif #endif
#ifdef OCC_HAVE_HISTORY PropagateProperties(aBuilder, shape);
Handle(BRepTools_History) history = aBuilder.History ();
for (TopExp_Explorer e(shape, TopAbs_SOLID); e.More(); e.Next())
{
if (auto name = OCCGeometry::GetProperties(e.Current()).name)
for (auto mods : history->Modified(e.Current()))
OCCGeometry::GetProperties(mods).name = *name;
}
#endif // OCC_HAVE_HISTORY
// result of the operation // result of the operation
shape = aBuilder.Shape(); shape = aBuilder.Shape();