fix #51;
parent
b027d23622
commit
3b21ff6749
|
@ -599,7 +599,11 @@ namespace Coffee.UIExtensions
|
||||||
{
|
{
|
||||||
EditorGUI.BeginChangeCheck ();
|
EditorGUI.BeginChangeCheck ();
|
||||||
//float radius = Handles.DoSimpleEdgeHandle (Quaternion.identity, Vector3.zero, shapeModule.radius);
|
//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);
|
float radius = Call<float> (typeof (Handles), "DoSimpleEdgeHandle", Quaternion.identity, Vector3.zero, shapeModule.radius);
|
||||||
|
#endif
|
||||||
if (EditorGUI.EndChangeCheck ())
|
if (EditorGUI.EndChangeCheck ())
|
||||||
{
|
{
|
||||||
Undo.RecordObject (ps, "Edge Handle Change");
|
Undo.RecordObject (ps, "Edge Handle Change");
|
||||||
|
@ -666,4 +670,4 @@ namespace Coffee.UIExtensions
|
||||||
Handles.matrix = orgMatrix;
|
Handles.matrix = orgMatrix;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue