mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 04:29:55 +00:00
Preserve ProfileName editing arbitrary profile #6284
This commit is contained in:
@@ -2257,6 +2257,7 @@ class OverrideModeSetObject(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
return
|
return
|
||||||
|
|
||||||
old_profile = item.SweptArea
|
old_profile = item.SweptArea
|
||||||
|
profile.ProfileName = old_profile.ProfileName
|
||||||
for inverse in tool.Ifc.get().get_inverse(old_profile):
|
for inverse in tool.Ifc.get().get_inverse(old_profile):
|
||||||
ifcopenshell.util.element.replace_attribute(inverse, old_profile, profile)
|
ifcopenshell.util.element.replace_attribute(inverse, old_profile, profile)
|
||||||
ifcopenshell.util.element.remove_deep2(tool.Ifc.get(), old_profile)
|
ifcopenshell.util.element.remove_deep2(tool.Ifc.get(), old_profile)
|
||||||
|
|||||||
Reference in New Issue
Block a user