Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RandomChoiceUI : Fix handling of non-ValuePlugs
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*) ```
- Loading branch information