diff --git a/Changes.md b/Changes.md index ab9ff05516..b17e4f224e 100644 --- a/Changes.md +++ b/Changes.md @@ -25,6 +25,7 @@ Fixes - 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. - Shuffle, ShuffleAttributes, ShufflePrimitiveVariables : Fixed some special cases where shuffling a source to itself would fail to have the expected effect. +- GraphEditor : Fixed dimming of labels for BoxIn and BoxOut nodes. API --- diff --git a/src/GafferUI/StandardNodeGadget.cpp b/src/GafferUI/StandardNodeGadget.cpp index d3e6609404..edb1f507b8 100644 --- a/src/GafferUI/StandardNodeGadget.cpp +++ b/src/GafferUI/StandardNodeGadget.cpp @@ -797,10 +797,9 @@ void StandardNodeGadget::updateFromContextTracker( const ContextTracker *context void StandardNodeGadget::updateTextDimming() { - NameGadget *name = IECore::runTimeCast( getContents() ); - if( name ) + if( auto text = IECore::runTimeCast( getContents() ) ) { - name->setDimmed( !( m_active || getHighlighted() ) ); + text->setDimmed( !( m_active || getHighlighted() ) ); } }