mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
See #5337. Grid decorators now turn off when editing an axis.
This commit is contained in:
@@ -67,6 +67,9 @@ class GridDecorator:
|
||||
for axis in context.scene.BIMGridProperties.grid_axes:
|
||||
if not (obj := axis.obj):
|
||||
continue
|
||||
if obj.select_get() and context.mode != "OBJECT":
|
||||
continue
|
||||
|
||||
tag = obj.name.split("/")[-1]
|
||||
matrix_world = obj.matrix_world
|
||||
v1 = matrix_world @ obj.data.vertices[0].co
|
||||
@@ -115,6 +118,8 @@ class GridDecorator:
|
||||
for axis in context.scene.BIMGridProperties.grid_axes:
|
||||
if obj := axis.obj:
|
||||
if obj.select_get():
|
||||
if context.mode != "OBJECT":
|
||||
continue
|
||||
edges = selected_edges
|
||||
verts = selected_verts
|
||||
else:
|
||||
|
||||
@@ -456,7 +456,7 @@ class BIM_PT_tabs(Panel):
|
||||
op.uri = "https://docs.bonsaibim.org/guides/troubleshooting.html#saving-and-loading-blend-files"
|
||||
row.operator("bim.close_blend_warning", text="", icon="CANCEL")
|
||||
|
||||
if context.mode != context.scene.BIMGeometryProperties.mode:
|
||||
if not context.mode.startswith(context.scene.BIMGeometryProperties.mode):
|
||||
box = self.layout.box()
|
||||
box.alert = True
|
||||
row = box.row(align=True)
|
||||
|
||||
Reference in New Issue
Block a user