浏览代码

Merge pull request #287 from Fenrisul/master

[Bugfix] SpineUnity SkeletonAnimationInspector mistake from last commit
Nathan Sweet 11 年之前
父节点
当前提交
bcd39886c5
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      spine-unity/Assets/spine-unity/Editor/SkeletonAnimationInspector.cs

+ 1 - 8
spine-unity/Assets/spine-unity/Editor/SkeletonAnimationInspector.cs

@@ -63,14 +63,6 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
 				if(component.AnimationName != animationName.stringValue){
 					animationName.stringValue = currentState.Animation.Name;
 				}
-
-				if(loop.boolValue != currentState.Loop){
-					loop.boolValue = currentState.Loop;
-				}
-
-				if(timeScale.floatValue != currentState.TimeScale){
-					timeScale.floatValue = currentState.TimeScale;
-				}
 			}
 		}
 
@@ -102,6 +94,7 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
 		EditorGUILayout.PropertyField(loop);
 		EditorGUILayout.PropertyField(timeScale);
 		component.timeScale = Math.Max(component.timeScale, 0);
+
 		EditorGUILayout.Space();
 
 		if(!isPrefab){