Skip to content

Commit

Permalink
fixup! EditScopePlugValueWidget : Filter available nodes using Contex…
Browse files Browse the repository at this point in the history
…tTracker
  • Loading branch information
johnhaddon committed Jul 23, 2024
1 parent 6502114 commit 24accc3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/GafferUI/EditScopeUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ def __plugInputChanged( self, plug ) :
if plug.getName() == "in" and plug.parent() == self.getPlug().node() :
# The result of `__inputNode()` will have changed.
self.__acquireContextTracker()
self.__updateMenuButton()

def __acquireContextTracker( self ) :

Expand All @@ -220,6 +219,12 @@ def __acquireContextTracker( self ) :
Gaffer.WeakMethod( self.__contextTrackerChanged ), scoped = True
)

if not self.__contextTracker.updatePending() :
self.__updateMenuButton()
else :
# We'll update later in `__contextTrackerChanged()`.
pass

def __updateMenuButton( self ) :

editScope = self.__editScope()
Expand Down

0 comments on commit 24accc3

Please sign in to comment.