From 0c2158089d5af2c2b8a177db56bd59ad25445ce4 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 20 May 2025 10:48:52 +0500 Subject: [PATCH] disable update_has_underlay if update_props is disabled Otherwise it was trying to load drawing styles too early, when drawing was not yet active. And then they were reloaded again during ActivateDrawingBase. Occurred after c2860e6, before this commit issue was kind of hidden. --- src/bonsai/bonsai/bim/module/drawing/prop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bonsai/bonsai/bim/module/drawing/prop.py b/src/bonsai/bonsai/bim/module/drawing/prop.py index c12eb66e53..d412e069d6 100644 --- a/src/bonsai/bonsai/bim/module/drawing/prop.py +++ b/src/bonsai/bonsai/bim/module/drawing/prop.py @@ -211,6 +211,8 @@ def update_document_name(self: "Document", context: bpy.types.Context) -> None: def update_has_underlay(self: "BIMCameraProperties", context: bpy.types.Context) -> None: + if not self.update_props: + return update_layer(self, context, "HasUnderlay", self.has_underlay) assert context.scene # making sure that camera is active