mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
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:
@@ -175,6 +175,8 @@ class Hotkey(bpy.types.Operator, Operator):
|
|||||||
bpy.ops.bim.add_boundary()
|
bpy.ops.bim.add_boundary()
|
||||||
|
|
||||||
def hotkey_A_B(self):
|
def hotkey_A_B(self):
|
||||||
|
if not AuthoringData.is_loaded:
|
||||||
|
AuthoringData.load()
|
||||||
if not bpy.context.selected_objects:
|
if not bpy.context.selected_objects:
|
||||||
return
|
return
|
||||||
if AuthoringData.data["has_visible_boundaries"]:
|
if AuthoringData.data["has_visible_boundaries"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user