From 6130c750bfe8dc8040db74de64ff84166d73e4b0 Mon Sep 17 00:00:00 2001 From: Murray Stevenson <50844517+murraystevenson@users.noreply.github.com> Date: Fri, 24 Nov 2023 13:52:12 -0800 Subject: [PATCH] AttributeInspector : Ensure `enabled` plug exists before use --- src/GafferSceneUI/AttributeInspector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GafferSceneUI/AttributeInspector.cpp b/src/GafferSceneUI/AttributeInspector.cpp index 1f6ad55f662..828e756e63c 100644 --- a/src/GafferSceneUI/AttributeInspector.cpp +++ b/src/GafferSceneUI/AttributeInspector.cpp @@ -276,7 +276,7 @@ Gaffer::ValuePlugPtr AttributeInspector::source( const GafferScene::SceneAlgo::H { if( plug->namePlug()->getValue() == m_attribute.string() && - plug->enabledPlug()->getValue() + ( !plug->enabledPlug() || plug->enabledPlug()->getValue() ) ) { /// \todo This is overly conservative. We should test to see if there is more than