Skip to content

Commit

Permalink
PathFilterUI : Fix Select Affected Objects on PathFilter.paths cells
Browse files Browse the repository at this point in the history
This appears to have been broken as far back as 1.2.0.0.

File "/opt/gaffer-1.2.0.0-linux/python/GafferSceneUI/PathFilterUI.py", line 213, in __popupMenu
	selection = IECore.PathMatcher( plugValueWidget.vectorDataWidget().getData()[0] )
IndexError: list index out of range
  • Loading branch information
murraystevenson committed Jan 14, 2025
1 parent 889c6e6 commit f4259cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Fixes
- PathFilter :
- Fixed bug preventing display of "Select Affected Objects" menu item in the row name column of promoted Spreadsheets.
- Fixed bug preventing use of "Select Affected Objects" menu item in the row name column of Spreadsheets with `enabledRowNames` connected to the `paths` plug of a PathFilter.
- Fixed error when using "Select Affected Objects" on Spreadsheet cells connected to the `paths` plug of a PathFilter.

1.4.15.3 (relative to 1.4.15.2)
========
Expand Down
2 changes: 1 addition & 1 deletion python/GafferSceneUI/PathFilterUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def __popupMenu( menuDefinition, plugValueWidget ) :
if cellPlug is None :
return

selection = IECore.PathMatcher( plugValueWidget.vectorDataWidget().getData()[0] )
selection = IECore.PathMatcher( plug.getValue() )

elif plug == rowPlug["name"] and spreadsheet["selector"].getValue() == "${scene:path}" :
selection = IECore.PathMatcher( [ plugValueWidget.getPlug().getValue() ] )
Expand Down

0 comments on commit f4259cf

Please sign in to comment.