From 6ffa88634cfad3e4e4e30a91451039a286263644 Mon Sep 17 00:00:00 2001 From: Eric Mehl Date: Thu, 12 Dec 2024 15:24:27 -0500 Subject: [PATCH] fixup! VisualiserTool : Add primitive variable menu --- python/GafferSceneUI/VisualiserToolUI.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/GafferSceneUI/VisualiserToolUI.py b/python/GafferSceneUI/VisualiserToolUI.py index c6f391e0bc..bf61a02e27 100644 --- a/python/GafferSceneUI/VisualiserToolUI.py +++ b/python/GafferSceneUI/VisualiserToolUI.py @@ -145,6 +145,9 @@ def __primitiveVariableContextMenu( menuDefinition, plugValueWidget ) : primVars = [] for path in selection.paths() : + if not scenePlug.exists( path ) : + continue + primitive = scenePlug.object( path ) if not isinstance( primitive, IECoreScene.MeshPrimitive ) : continue