mirror of
https://github.com/Siccity/xNode.git
synced 2026-02-04 22:34:54 +08:00
microoptimization, removes implicit case from vec2 to vec3.
This commit is contained in:
parent
91eafcc47d
commit
71023e1d58
@ -129,8 +129,10 @@ namespace XNodeEditor {
|
|||||||
|
|
||||||
/// <summary> Draws a line segment without allocating temporary arrays </summary>
|
/// <summary> Draws a line segment without allocating temporary arrays </summary>
|
||||||
static void DrawAAPolyLineNonAlloc(float thickness, Vector2 p0, Vector2 p1) {
|
static void DrawAAPolyLineNonAlloc(float thickness, Vector2 p0, Vector2 p1) {
|
||||||
polyLineTempArray[0] = p0;
|
polyLineTempArray[0].x = p0.x;
|
||||||
polyLineTempArray[1] = p1;
|
polyLineTempArray[0].y = p0.y;
|
||||||
|
polyLineTempArray[1].x = p1.x;
|
||||||
|
polyLineTempArray[1].y = p1.y;
|
||||||
Handles.DrawAAPolyLine(thickness, polyLineTempArray);
|
Handles.DrawAAPolyLine(thickness, polyLineTempArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user