Skip to content

Commit

Permalink
PlugValueWidget : Fix auxiliaryPlug search for input plugs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Aug 18, 2023
1 parent 2b544e1 commit 256dfd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Fixes
-----

- Viewer : Fixed crash when visualising lights with a light filter intended for a different renderer.
- PlugValueWidget : Fixed search for auxiliary plugs of output plugs. In this case, the inputs are now searched instead of the outputs.

API
---
Expand Down
5 changes: 4 additions & 1 deletion python/GafferUI/PlugValueWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,10 @@ def __setPlugsInternal( self, plugs, callUpdateMethods ) :
self.__auxiliaryPlugs = []
auxiliaryNodes = set()
for plug in self.__plugs :
auxiliaryPlugs = Gaffer.PlugAlgo.findDestination( plug, lambda plug : self._auxiliaryPlugs( plug ) ) or []
if plug.direction() == Gaffer.Plug.Direction.In :
auxiliaryPlugs = Gaffer.PlugAlgo.findDestination( plug, lambda plug : self._auxiliaryPlugs( plug ) ) or []
else :
auxiliaryPlugs = Gaffer.PlugAlgo.findSource( plug, lambda plug : self._auxiliaryPlugs( plug ) ) or []
self.__auxiliaryPlugs.append( auxiliaryPlugs )
auxiliaryNodes.update( [ plug.node() for plug in auxiliaryPlugs ] )
# > Note : Which `auxiliaryPlugs` we find depends on the output connections
Expand Down

0 comments on commit 256dfd2

Please sign in to comment.