mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Fix bug where grid decorator only considered hide states, not hide viewport state or local isolation, etc
This commit is contained in:
@@ -70,7 +70,7 @@ class GridDecorator:
|
|||||||
|
|
||||||
grid_props = tool.Spatial.get_grid_props()
|
grid_props = tool.Spatial.get_grid_props()
|
||||||
for axis in grid_props.grid_axes:
|
for axis in grid_props.grid_axes:
|
||||||
if not (obj := axis.obj) or obj.hide_get() == True:
|
if not (obj := axis.obj) or obj.visible_get() is False:
|
||||||
continue
|
continue
|
||||||
if obj.select_get() and context.mode != "OBJECT":
|
if obj.select_get() and context.mode != "OBJECT":
|
||||||
continue
|
continue
|
||||||
@@ -125,7 +125,8 @@ class GridDecorator:
|
|||||||
unselected_edges = []
|
unselected_edges = []
|
||||||
grid_props = tool.Spatial.get_grid_props()
|
grid_props = tool.Spatial.get_grid_props()
|
||||||
for axis in grid_props.grid_axes:
|
for axis in grid_props.grid_axes:
|
||||||
if (obj := axis.obj) and obj.hide_get() == False:
|
if not (obj := axis.obj) or obj.visible_get() is False:
|
||||||
|
continue
|
||||||
if obj.select_get():
|
if obj.select_get():
|
||||||
if context.mode != "OBJECT":
|
if context.mode != "OBJECT":
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user