mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[Bugfix] SpineUnity SkeletonAnimationInspector mistake from previous commit
This commit is contained in:
parent
8894365ac7
commit
bee2462b3e
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user