Skip to content

Commit

Permalink
Merge pull request #6180 from johnhaddon/randomChoiceUIFix
Browse files Browse the repository at this point in the history
RandomChoiceUI : Fix handling of non-ValuePlugs
  • Loading branch information
ericmehl authored Dec 10, 2024
2 parents fe384e4 + 1d8403c commit 2e0c9ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Fixes
- Widget : Fixed `event.sourceWidget` for DragDropEvents generated from a Qt native drag within the same Gaffer process. This will now reference the `GafferUI.Widget` that the Qt source widget belongs to, if any.
- Catalogue : Fixed bug which "stole" drags that crossed the image listing but which were destined elsewhere, for instance a drag from the HierarchyView to a PathFilter in the GraphEditor.
- GadgetWidget : Fixed signal handling bug in `setViewportGadget()`. This could cause the widget to attempt to redraw unnecessarily when the _old_ viewport requested a redraw.
- RandomChoice : Fixed errors right-clicking on non-value plugs in the NodeEditor.

1.4.15.2 (relative to 1.4.15.1)
========
Expand Down
2 changes: 2 additions & 0 deletions python/GafferUI/RandomChoiceUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ def __popupMenu( menuDefinition, plugValueWidget ) :
return

for plug in plugValueWidget.getPlugs() :
if not isinstance( plug, Gaffer.ValuePlug ) :
return
if plug.getInput() is not None or Gaffer.MetadataAlgo.readOnly( plug ) :
return
if not Gaffer.RandomChoice.canSetup( plug ) :
Expand Down

0 comments on commit 2e0c9ca

Please sign in to comment.