Skip to content

Commit

Permalink
PlugLayout : Update activations when children added/removed
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Nov 26, 2024
1 parent 2322836 commit 724d182
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
1.5.x.x (relative to 1.5.1.0)
=======

API
---

- PlugLayout : Activations may now depend on the presence of certain plugs, as they are now reevaluated when child plugs are added and removed.

1.5.1.0 (relative to 1.5.0.1)
=======
Expand Down
1 change: 1 addition & 0 deletions python/GafferUI/PlugLayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ def __childAddedOrRemoved( self, *unusedArgs ) :
# we do a lazy update so we can batch up several changes into one.
# upheaval is over.
self.__layoutDirty = True
self.__activationsDirty = True
self.__updateLazily()

def __plugMetadataChanged( self, plug, key, reason ) :
Expand Down

0 comments on commit 724d182

Please sign in to comment.