This commit is contained in:
CyrilWaechter
2023-04-11 22:03:26 +02:00
parent ed1f35c09c
commit 8aa5830741
@@ -825,7 +825,7 @@ class OverrideModeSetObject(bpy.types.Operator):
for obj in self.edited_objs:
if self.should_save:
bpy.ops.bim.update_representation(obj=obj.name, ifc_representation_class="")
if tool.Ifc.get_entity(obj).HasOpenings:
if getattr(tool.Ifc.get_entity(obj), "HasOpenings", False):
self.reload_representation(obj)
else:
self.reload_representation(obj)