Fix bug object position wouldn't be synced on project save

If project had scale and openings then bim.update_representation wouldn't apply it's position leading to unsynced position.
This commit is contained in:
Andrej730
2024-10-28 14:04:04 +05:00
parent 850c16c745
commit a4979a74b2
+5 -1
View File
@@ -149,7 +149,11 @@ class IfcExporter:
if tool.Geometry.is_scaled(obj):
print(f"WARNING. Object '{obj.name}' scales ({obj.scale[:]}) are reset during project save.")
obj.scale = (1.0, 1.0, 1.0)
return element
else:
# Return and don't handle is_moved as
# updata_representation will run edit_object_placement if object is scaled
# and had no openings.
return element
if not tool.Ifc.is_moved(obj):
return
if element.is_a("IfcGridAxis"):