Skip to content

Commit

Permalink
fixup! VisualiserTool : Add primitive variable menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Dec 12, 2024
1 parent 87903f1 commit c8b30c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/GafferSceneUI/VisualiserToolUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __primitiveVariableContextMenu( menuDefinition, plugValueWidget ) :
with node.view().context() :
selection = GafferSceneUI.ScriptNodeAlgo.getSelectedPaths( scriptNode )

primVars = []
primVars = set()

for path in selection.paths() :
if not scenePlug.exists( path ) :
Expand Down Expand Up @@ -172,7 +172,7 @@ def __primitiveVariableContextMenu( menuDefinition, plugValueWidget ) :
) :
continue

primVars.append( v )
primVars.add( v )

if len( primVars ) > 0 :
menuDefinition.prepend( "/PrimitiveVariablesDivider", { "divider" : True } )
Expand Down

0 comments on commit c8b30c7

Please sign in to comment.