Skip to content

Commit d2c96a4

Browse files
committedDec 9, 2020
Function to invalidate all drawings.
1 parent 13b7143 commit d2c96a4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎Sources/NodeUIEngine/NUIE_NodeEditor.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ void NodeEditor::ConnectOutputSlotToInputSlot (const UIOutputSlotConstPtr& outpu
131131
Update ();
132132
}
133133

134+
void NodeEditor::InvalidateAllDrawings ()
135+
{
136+
uiManager.InvalidateAllDrawings ();
137+
Update ();
138+
}
139+
134140
Point NodeEditor::ViewToModel (const Point& viewPoint) const
135141
{
136142
const ViewBox& viewBox = uiManager.GetViewBox ();

‎Sources/NodeUIEngine/NUIE_NodeEditor.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class NodeEditor
4444

4545
void AddNode (const UINodePtr& uiNode);
4646
void ConnectOutputSlotToInputSlot (const UIOutputSlotConstPtr& outputSlot, const UIInputSlotConstPtr& inputSlot);
47+
void InvalidateAllDrawings ();
4748

4849
Point ViewToModel (const Point& viewPoint) const;
4950
void AlignToWindow ();

0 commit comments

Comments
 (0)
Please sign in to comment.