From 8b99a34a6347a3e6f4d766c71fd69f51481e8584 Mon Sep 17 00:00:00 2001 From: Simon Rodriguez Date: Tue, 12 Nov 2019 23:05:33 +0100 Subject: [PATCH] The in parameter was is available in C# 7.2 and later. This breaks compatibility with earlier versions. --- Scripts/Editor/NodeEditorGUI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Editor/NodeEditorGUI.cs b/Scripts/Editor/NodeEditorGUI.cs index 9bb6ab7..5ff178f 100644 --- a/Scripts/Editor/NodeEditorGUI.cs +++ b/Scripts/Editor/NodeEditorGUI.cs @@ -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 { } /// Draws a line segment without allocating temporary arrays - 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);