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,7 +189,8 @@ 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
core.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj) if tool.Ifc.is_moved(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"]:
# These objects are parametrically based on an axis and should not be modified as a mesh # These objects are parametrically based on an axis and should not be modified as a mesh