From de043ba4a205f196173ccf0873fa0a3d54c53e65 Mon Sep 17 00:00:00 2001 From: John Haddon Date: Fri, 28 Jun 2024 16:57:29 +0100 Subject: [PATCH] PrimitiveInspector : Fixed update when existence changes We use the `exists` plug during the update, so we need to update when it is dirtied. --- Changes.md | 1 + python/GafferSceneUI/PrimitiveInspector.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes.md b/Changes.md index d21decfaeb..c1dfe0412c 100644 --- a/Changes.md +++ b/Changes.md @@ -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 --- diff --git a/python/GafferSceneUI/PrimitiveInspector.py b/python/GafferSceneUI/PrimitiveInspector.py index c05903a8e1..74750844ff 100644 --- a/python/GafferSceneUI/PrimitiveInspector.py +++ b/python/GafferSceneUI/PrimitiveInspector.py @@ -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 )