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

RandomChoiceUI : Fix handling of non-ValuePlugs #6180

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

johnhaddon
Copy link
Member

Right-clicking on (for example) a ShaderAssignment.shader plug in the NodeEditor was leading to the following warning :

ERROR : Plug menu : Traceback (most recent call last):
ERROR :   File "/home/john/dev/build/gaffer-1.4/python/GafferUI/PlugValueWidget.py", line 994, in __combiner
ERROR :     next( results )
ERROR : IECore.Exception: Traceback (most recent call last):
ERROR :   File "/home/john/dev/build/gaffer-1.4/python/GafferUI/RandomChoiceUI.py", line 245, in __popupMenu
ERROR :     if not Gaffer.RandomChoice.canSetup( plug ) :
ERROR : Boost.Python.ArgumentError: Python argument types in
ERROR :     RandomChoice.canSetup(ShaderPlug)
ERROR : did not match C++ signature:
ERROR :     canSetup(Gaffer::ValuePlug const*)

Right-clicking on (for example) a `ShaderAssignment.shader` plug in the NodeEditor was leading to the following warning :

```
ERROR : Plug menu : Traceback (most recent call last):
ERROR :   File "/home/john/dev/build/gaffer-1.4/python/GafferUI/PlugValueWidget.py", line 994, in __combiner
ERROR :     next( results )
ERROR : IECore.Exception: Traceback (most recent call last):
ERROR :   File "/home/john/dev/build/gaffer-1.4/python/GafferUI/RandomChoiceUI.py", line 245, in __popupMenu
ERROR :     if not Gaffer.RandomChoice.canSetup( plug ) :
ERROR : Boost.Python.ArgumentError: Python argument types in
ERROR :     RandomChoice.canSetup(ShaderPlug)
ERROR : did not match C++ signature:
ERROR :     canSetup(Gaffer::ValuePlug const*)
```
@johnhaddon johnhaddon requested a review from ericmehl December 10, 2024 16:46
@johnhaddon johnhaddon self-assigned this Dec 10, 2024
@ericmehl
Copy link
Collaborator

LGTM

@ericmehl ericmehl merged commit 2e0c9ca into GafferHQ:1.4_maintenance Dec 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending release
Development

Successfully merging this pull request may close these issues.

2 participants