Skip to content

Commit

Permalink
AttributeInspector : Ensure enabled plug exists before use
Browse files Browse the repository at this point in the history
  • Loading branch information
murraystevenson committed Dec 14, 2023
1 parent 03191cd commit 6130c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GafferSceneUI/AttributeInspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6130c75

Please sign in to comment.