mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Fix handles color not being reset to original color
This commit is contained in:
parent
8046e6e0bf
commit
d3959a16d9
@ -142,6 +142,7 @@ namespace XNodeEditor {
|
||||
for (int i = 0; i < gridPoints.Count; ++i)
|
||||
gridPoints[i] = GridToWindowPosition(gridPoints[i]);
|
||||
|
||||
Color originalHandlesColor = Handles.color;
|
||||
Handles.color = gradient.Evaluate(0f);
|
||||
int length = gridPoints.Count;
|
||||
switch (path) {
|
||||
@ -305,6 +306,7 @@ namespace XNodeEditor {
|
||||
gridPoints[length - 1] = end;
|
||||
break;
|
||||
}
|
||||
Handles.color = originalHandlesColor;
|
||||
}
|
||||
|
||||
/// <summary> Draws all connections </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user