Skip to content

Commit

Permalink
Update sv_viewerdraw_show_hide.py
Browse files Browse the repository at this point in the history
Simplification
  • Loading branch information
nortikin authored Nov 8, 2023
1 parent 85a7269 commit 4ca1deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/sv_viewerdraw_show_hide.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def viewerdraw_showhide(operator, context):
return {'CANCELLED'}

for node in selected_nodes:
res = any([i in node.bl_idname for i in ['Viewer Draw Curve', 'SvViewerDraw', 'Viewer Draw Surface', 'Matrix View','Viewer Index', 'Solid Viewer', 'Viewer 2D', 'Stethoscope']])
res = any([i in node.name for i in ['Viewer','Stethoscope']])
if res:
node.activate = not node.activate

Expand Down

0 comments on commit 4ca1deb

Please sign in to comment.