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.
This commit is contained in:
Andrej730
2024-03-12 12:12:12 +05:00
parent 998b4a0565
commit a265a41ebe
@@ -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"]: