mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Minor refinements for 931d8e6
This commit is contained in:
@@ -67,7 +67,7 @@ class EnableStatusFilters(bpy.types.Operator):
|
||||
if new.name in hidden_statuses:
|
||||
new.is_visible = False
|
||||
|
||||
visible_statuses = {s.name for s in props.statuses} - hidden_statuses
|
||||
visible_statuses = {s.name for s in props.statuses if s.is_visible}
|
||||
tool.Sequence.set_visibility_by_status(visible_statuses)
|
||||
return {"FINISHED"}
|
||||
|
||||
@@ -80,8 +80,8 @@ class DisableStatusFilters(bpy.types.Operator):
|
||||
def execute(self, context):
|
||||
props = context.scene.BIMStatusProperties
|
||||
|
||||
visible_statuses = {s.name for s in props.statuses}
|
||||
tool.Sequence.set_visibility_by_status(visible_statuses)
|
||||
all_statuses = {s.name for s in props.statuses}
|
||||
tool.Sequence.set_visibility_by_status(all_statuses)
|
||||
props.is_enabled = False
|
||||
return {"FINISHED"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user