From b96e275251d00cbe343f68317bd542655df4bb4f Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 28 Oct 2024 13:49:49 +0500 Subject: [PATCH] Fix bim.update_representation not apply scales if object wasn't moved Was also creating same issue when project was saved --- src/bonsai/bonsai/bim/module/geometry/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/geometry/operator.py b/src/bonsai/bonsai/bim/module/geometry/operator.py index 48fc41cdc4..2b76f48252 100644 --- a/src/bonsai/bonsai/bim/module/geometry/operator.py +++ b/src/bonsai/bonsai/bim/module/geometry/operator.py @@ -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"]: