Skip to content

Commit

Permalink
Merge pull request #1224 from johnhaddon/errorStatusClearFix
Browse files Browse the repository at this point in the history
Fixed clearing of StandardNodeGadget errors for non-DependencyNodes.
  • Loading branch information
andrewkaufman committed Mar 9, 2015
2 parents 1dd417e + a576220 commit ebd6a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GafferUI/StandardNodeGadget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ StandardNodeGadget::StandardNodeGadget( Gaffer::NodePtr node, LinearContainer::O
node->childAddedSignal().connect( boost::bind( &StandardNodeGadget::childAdded, this, ::_1, ::_2 ) );
node->childRemovedSignal().connect( boost::bind( &StandardNodeGadget::childRemoved, this, ::_1, ::_2 ) );
node->errorSignal().connect( boost::bind( &StandardNodeGadget::error, this, ::_1, ::_2, ::_3 ) );
node->plugDirtiedSignal().connect( boost::bind( &StandardNodeGadget::plugDirtied, this, ::_1 ) );

if( DependencyNode *dependencyNode = IECore::runTimeCast<DependencyNode>( node.get() ) )
{
Expand All @@ -286,7 +287,6 @@ StandardNodeGadget::StandardNodeGadget( Gaffer::NodePtr node, LinearContainer::O
{
m_nodeEnabled = enabledPlug->getValue();
}
node->plugDirtiedSignal().connect( boost::bind( &StandardNodeGadget::plugDirtied, this, ::_1 ) );
}

dragEnterSignal().connect( boost::bind( &StandardNodeGadget::dragEnter, this, ::_1, ::_2 ) );
Expand Down

0 comments on commit ebd6a2f

Please sign in to comment.