pull/52/head
hitsuji-dev 2019-07-29 18:02:16 +09:00 committed by GitHub
parent b027d23622
commit 3b21ff6749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -599,7 +599,11 @@ namespace Coffee.UIExtensions
{
EditorGUI.BeginChangeCheck ();
//float radius = Handles.DoSimpleEdgeHandle (Quaternion.identity, Vector3.zero, shapeModule.radius);
#if UNITY_2019_1_OR_NEWER
float radius = Call<float> (typeof (Handles), "DoSimpleEdgeHandle", Quaternion.identity, Vector3.zero, shapeModule.radius, true);
#else
float radius = Call<float> (typeof (Handles), "DoSimpleEdgeHandle", Quaternion.identity, Vector3.zero, shapeModule.radius);
#endif
if (EditorGUI.EndChangeCheck ())
{
Undo.RecordObject (ps, "Edge Handle Change");
@ -666,4 +670,4 @@ namespace Coffee.UIExtensions
Handles.matrix = orgMatrix;
}
}
}
}