Permalink
Browse files

Change rotation's data type to float in XML.

  • Loading branch information...
xiaoguzhu committed Jul 3, 2018
1 parent ac5d359 commit 6f6db79fafc5b27aeec3ff0c21257cccaf6e70ad
Showing with 3 additions and 3 deletions.
  1. +1 −1 Source/Scripts/UI/GObject.cs
  2. +2 −2 Source/Scripts/UI/Transition.cs
@@ -1739,7 +1739,7 @@ virtual public void Setup_BeforeAdd(XML xml)
str = xml.GetAttribute("rotation");
if (str != null)
this.rotation = int.Parse(str);
this.rotation = float.Parse(str);
arr = xml.GetAttributeArray("pivot");
if (arr != null)
@@ -360,7 +360,7 @@ public void SetValue(string label, params object[] aParams)
break;
case TransitionActionType.Rotation:
value.f1 = Convert.ToInt32(aParams[0]);
value.f1 = Convert.ToSingle(aParams[0]);
break;
case TransitionActionType.Color:
@@ -1022,7 +1022,7 @@ void DecodeValue(TransitionItem item, string str, TransitionValue value)
break;
case TransitionActionType.Rotation:
value.f1 = int.Parse(str);
value.f1 = float.Parse(str);
break;
case TransitionActionType.Scale:

0 comments on commit 6f6db79

Please sign in to comment.