Openings now move with the host by default. Small change, big impact.

This commit is contained in:
Dion Moult
2022-10-03 23:29:59 +11:00
parent 1d39413717
commit 0eae3de6a2
3 changed files with 56 additions and 2 deletions
@@ -417,6 +417,8 @@ class ShowOpenings(Operator, tool.Ifc.Operator):
element = tool.Ifc.get_entity(obj)
if not element:
continue
if tool.Ifc.is_moved(obj):
blenderbim.core.geometry.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj)
openings = tool.Model.load_openings(element, [r.RelatedOpeningElement for r in element.HasOpenings])
for opening in openings:
new = props.openings.add()