Skip to content

Commit d9863d6

Browse files
committed
Request recalculate and redraw when a command is executed.
1 parent 047a799 commit d9863d6

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Sources/BuiltInNodes/BI_InputUINodes.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,9 @@ void BooleanNode::RegisterParameters (NUIE::NodeParameterList& parameterList) co
131131
return NE::ValuePtr (new NE::BooleanValue (GetTypedNode (uiNode)->GetValue ()));
132132
}
133133

134-
virtual bool SetValueInternal (NUIE::NodeUIManager& uiManager, NE::EvaluationEnv&, NUIE::UINodePtr& uiNode, const NE::ValueConstPtr& value) override
134+
virtual bool SetValueInternal (NUIE::NodeUIManager&, NE::EvaluationEnv&, NUIE::UINodePtr& uiNode, const NE::ValueConstPtr& value) override
135135
{
136136
GetTypedNode (uiNode)->SetValue (NE::BooleanValue::Get (value));
137-
uiManager.InvalidateNodeValue (uiNode);
138-
uiManager.InvalidateNodeDrawing (uiNode);
139137
return true;
140138
}
141139
};
@@ -300,11 +298,9 @@ void IntegerUpDownNode::RegisterParameters (NUIE::NodeParameterList& parameterLi
300298
return NE::ValuePtr (new NE::IntValue (GetTypedNode (uiNode)->GetValue ()));
301299
}
302300

303-
virtual bool SetValueInternal (NUIE::NodeUIManager& uiManager, NE::EvaluationEnv&, NUIE::UINodePtr& uiNode, const NE::ValueConstPtr& value) override
301+
virtual bool SetValueInternal (NUIE::NodeUIManager&, NE::EvaluationEnv&, NUIE::UINodePtr& uiNode, const NE::ValueConstPtr& value) override
304302
{
305303
GetTypedNode (uiNode)->SetValue (NE::IntValue::Get (value));
306-
uiManager.InvalidateNodeValue (uiNode);
307-
uiManager.InvalidateNodeDrawing (uiNode);
308304
return true;
309305
}
310306
};
@@ -426,11 +422,9 @@ void DoubleUpDownNode::RegisterParameters (NUIE::NodeParameterList& parameterLis
426422
return NE::ValuePtr (new NE::DoubleValue (GetTypedNode (uiNode)->GetValue ()));
427423
}
428424

429-
virtual bool SetValueInternal (NUIE::NodeUIManager& uiManager, NE::EvaluationEnv&, NUIE::UINodePtr& uiNode, const NE::ValueConstPtr& value) override
425+
virtual bool SetValueInternal (NUIE::NodeUIManager&, NE::EvaluationEnv&, NUIE::UINodePtr& uiNode, const NE::ValueConstPtr& value) override
430426
{
431427
GetTypedNode (uiNode)->SetValue (NE::DoubleValue::Get (value));
432-
uiManager.InvalidateNodeValue (uiNode);
433-
uiManager.InvalidateNodeDrawing (uiNode);
434428
return true;
435429
}
436430
};

Sources/NodeUIEngine/NUIE_NodeUIManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ void NodeUIManager::ExecuteCommand (NodeUIManagerCommand& command)
576576
SaveUndoState ();
577577
}
578578
command.Do (*this);
579+
RequestRecalculateAndRedraw ();
579580
status.RequestSave ();
580581
}
581582

0 commit comments

Comments
 (0)