Skip to content

Commit

Permalink
StandardNodeGadget : Fix dimming of BoxIO labels
Browse files Browse the repository at this point in the history
These are TextGadgets displaying the name of the external plug, so were being ignored by the cast to NameGadget.
  • Loading branch information
johnhaddon committed Jul 25, 2024
1 parent c6e4047 commit 428527a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down
5 changes: 2 additions & 3 deletions src/GafferUI/StandardNodeGadget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,9 @@ void StandardNodeGadget::updateFromContextTracker( const ContextTracker *context

void StandardNodeGadget::updateTextDimming()
{
NameGadget *name = IECore::runTimeCast<NameGadget>( getContents() );
if( name )
if( auto text = IECore::runTimeCast<TextGadget>( getContents() ) )
{
name->setDimmed( !( m_active || getHighlighted() ) );
text->setDimmed( !( m_active || getHighlighted() ) );
}
}

Expand Down

0 comments on commit 428527a

Please sign in to comment.