Skip to content

Commit

Permalink
PrimitiveInspector : Fixed update when existence changes
Browse files Browse the repository at this point in the history
We use the `exists` plug during the update, so we need to update when it is dirtied.
  • Loading branch information
johnhaddon committed Jun 28, 2024
1 parent ed79d96 commit de043ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Fixes
- Editor : Fixed `Internal C++ object already deleted` errors when some editors were destroyed.
- UVInspector : Fixed `Unable to find ScriptNode for UVView` warnings.
- Scene Editors : Fixed update when ScenePlugs are added to or removed from the node being viewed.
- PrimitiveInspector : Fixed failure to update when the location being viewed ceases to exist, or is recreated.

API
---
Expand Down
2 changes: 1 addition & 1 deletion python/GafferSceneUI/PrimitiveInspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _updateFromContext( self, modifiedItems ) :

def _updateFromSettings( self, plug ) :

if plug.isSame( self.settings()["in"]["object"] ) :
if plug.isSame( self.settings()["in"]["object"] ) or plug.isSame( self.settings()["in"]["exists"] ) :
self.__updateLazily()

@GafferUI.LazyMethod( deferUntilPlaybackStops = True )
Expand Down

0 comments on commit de043ba

Please sign in to comment.