Fix #2971. Only update placement if object actually moved.

This commit is contained in:
Dion Moult
2023-04-13 21:56:32 +10:00
parent 850a1d326b
commit 33bd6099ee
@@ -189,6 +189,7 @@ class UpdateRepresentation(bpy.types.Operator, Operator):
ifcopenshell.api.run("boundary.assign_connection_geometry", tool.Ifc.get(), **settings) ifcopenshell.api.run("boundary.assign_connection_geometry", tool.Ifc.get(), **settings)
return return
if tool.Ifc.is_moved(obj):
core.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj) core.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj)
if material and material.is_a() in ["IfcMaterialProfileSet", "IfcMaterialLayerSet"]: if material and material.is_a() in ["IfcMaterialProfileSet", "IfcMaterialLayerSet"]: