Skip to content

Commit ab7e591

Browse files
committed
Request redraw explicitly after moving nodes.
1 parent d2ad357 commit ab7e591

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/NodeUIEngine/NUIE_NodeUIManagerCommands.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ void MoveNodesCommand::Do (NodeUIManager& uiManager)
7979
uiNode->SetPosition (uiNode->GetPosition () + offset);
8080
uiManager.InvalidateNodeGroupDrawing (uiNode);
8181
}
82+
uiManager.RequestRedraw ();
8283
}
8384

8485
MoveNodesWithOffsetsCommand::MoveNodesWithOffsetsCommand (const NE::NodeCollection& nodes, const std::vector<Point>& offsets) :
@@ -98,9 +99,9 @@ void MoveNodesWithOffsetsCommand::Do (NodeUIManager& uiManager)
9899
const Point& offset = offsets[i];
99100
UINodePtr uiNode = uiManager.GetNode (nodeId);
100101
uiNode->SetPosition (uiNode->GetPosition () + offset);
101-
uiManager.InvalidateNodeDrawing (uiNode);
102102
uiManager.InvalidateNodeGroupDrawing (uiNode);
103103
}
104+
uiManager.RequestRedraw ();
104105
}
105106

106107
CopyMoveNodesCommand::CopyMoveNodesCommand (NodeUIEnvironment& uiEnvironment, const NE::NodeCollection& nodes, const Point& offset) :

0 commit comments

Comments
 (0)