From 44dd07547e38cec90a8a563ea426203ec87c3326 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 12 Mar 2024 12:12:12 +0500 Subject: [PATCH] Fix issue with drawing same boundaries multiple times If you'd hit alt+b in space tool multiple times it would redraw them again and again instead of switching between hiding and showing. --- src/blenderbim/blenderbim/bim/module/spatial/workspace.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/spatial/workspace.py b/src/blenderbim/blenderbim/bim/module/spatial/workspace.py index 8e91081ffb..19798f8207 100644 --- a/src/blenderbim/blenderbim/bim/module/spatial/workspace.py +++ b/src/blenderbim/blenderbim/bim/module/spatial/workspace.py @@ -175,6 +175,8 @@ class Hotkey(bpy.types.Operator, Operator): bpy.ops.bim.add_boundary() def hotkey_A_B(self): + if not AuthoringData.is_loaded: + AuthoringData.load() if not bpy.context.selected_objects: return if AuthoringData.data["has_visible_boundaries"]: