Skip to content

Commit

Permalink
PlugPopup : Improve discovery of textWidgets
Browse files Browse the repository at this point in the history
  • Loading branch information
murraystevenson committed May 28, 2024
1 parent 6f7fe92 commit dcf661f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/GafferUI/PlugPopup.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,11 @@ def widgetUsable( w ) :

widget = None

if isinstance( plugValueWidget, GafferUI.StringPlugValueWidget ) :
widget = plugValueWidget.textWidget()
elif isinstance( plugValueWidget, GafferUI.NumericPlugValueWidget ) :
if isinstance( plugValueWidget, GafferUI.NumericPlugValueWidget ) :
widget = plugValueWidget.numericWidget()
elif isinstance( plugValueWidget, GafferUI.PathPlugValueWidget ) :
widget = plugValueWidget.pathWidget()
elif isinstance( plugValueWidget, GafferUI.MultiLineStringPlugValueWidget ) :
elif hasattr( plugValueWidget, "textWidget" ) :
widget = plugValueWidget.textWidget()

if widget is not None and widgetUsable( widget ) :
Expand Down

0 comments on commit dcf661f

Please sign in to comment.