mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
The in parameter was is available in C# 7.2 and later. This breaks compatibility with earlier versions.
This commit is contained in:
parent
e15076b34f
commit
8b99a34a63
@ -117,7 +117,7 @@ namespace XNodeEditor {
|
||||
if (NodeEditorPreferences.GetSettings().autoSave) AssetDatabase.SaveAssets();
|
||||
}
|
||||
|
||||
static Vector2 CalculateBezierPoint(in Vector2 p0, in Vector2 p1, in Vector2 p2, in Vector2 p3, float t) {
|
||||
static Vector2 CalculateBezierPoint(Vector2 p0, Vector2 p1, Vector2 p2, Vector2 p3, float t) {
|
||||
float u = 1 - t;
|
||||
float tt = t * t, uu = u * u;
|
||||
float uuu = uu * u, ttt = tt * t;
|
||||
@ -125,7 +125,7 @@ namespace XNodeEditor {
|
||||
}
|
||||
|
||||
/// <summary> Draws a line segment without allocating temporary arrays </summary>
|
||||
static void DrawAAPolyLineNonAlloc(float thickness, in Vector2 p0, in Vector2 p1) {
|
||||
static void DrawAAPolyLineNonAlloc(float thickness, Vector2 p0, Vector2 p1) {
|
||||
polyLineTempArray[0] = p0;
|
||||
polyLineTempArray[1] = p1;
|
||||
Handles.DrawAAPolyLine(thickness, polyLineTempArray);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user