Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeAlgo : Fix plug presets inheritance #5799

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
1.3.16.x (relative to 1.3.16.0)
========

Fixes
-----

- NodeAlgo: Fixed presets inheritance for promoted plugs with multiple outputs.


1.3.16.0 (relative to 1.3.15.0)
Expand Down
7 changes: 4 additions & 3 deletions python/Gaffer/NodeAlgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ def __presets( plug ) :
# from a connected plug.

if plug.direction() == plug.Direction.In :
plug = next( iter( plug.outputs() ), None )
if plug is not None :
return __presets( plug )
for outputPlug in plug.outputs():
outputPresets = __presets( outputPlug )
if outputPresets:
return outputPresets

return result

Expand Down
Loading