1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 01:06:01 +08:00

Fix handles color not being reset to original color (#266)

Co-authored-by: Christiaan Bloemendaal <christiaan@codeglue.com>
This commit is contained in:
Christiaan Bloemendaal 2020-05-27 14:20:37 +02:00 committed by GitHub
parent a8daac60b0
commit 6c85abf9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>