Fix bim.update_representation not apply scales if object wasn't moved

Was also creating same issue when project was saved
This commit is contained in:
Andrej730
2024-10-28 13:49:49 +05:00
parent 48a7af76ad
commit b96e275251
@@ -442,7 +442,7 @@ class UpdateRepresentation(bpy.types.Operator, tool.Ifc.Operator):
ifcopenshell.api.run("boundary.assign_connection_geometry", tool.Ifc.get(), **settings)
return
if tool.Ifc.is_moved(obj):
if tool.Ifc.is_moved(obj) or tool.Geometry.is_scaled(obj):
core.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj)
if material and material.is_a() in ["IfcMaterialProfileSet", "IfcMaterialLayerSet"]: