From 1e9bfec6553985aab78585323633320569fc6fc8 Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Sat, 22 Jun 2024 11:44:42 -0500 Subject: [PATCH] Fix #4493 - Save drawing boundaries on `bim.activate_drawing` as well. --- src/blenderbim/blenderbim/bim/module/drawing/operator.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/operator.py b/src/blenderbim/blenderbim/bim/module/drawing/operator.py index 903a63502f..3ceec0bdc5 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/operator.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/operator.py @@ -1553,6 +1553,14 @@ class ActivateDrawing(bpy.types.Operator): core.sync_references(tool.Ifc, tool.Collector, tool.Drawing, drawing=tool.Ifc.get().by_id(self.drawing)) CutDecorator.install(context) tool.Drawing.show_decorations() + + # Save drawing bounds to the .ifc file + camera = context.scene.camera + camera_props = camera.data.BIMCameraProperties + if camera_props.update_representation(camera): + bpy.ops.bim.update_representation(obj=camera.name, ifc_representation_class="") + + return {"FINISHED"}