mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge pull request #287 from Fenrisul/master
[Bugfix] SpineUnity SkeletonAnimationInspector mistake from last commit
This commit is contained in:
commit
bcd39886c5
@ -63,14 +63,6 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
|
|||||||
if(component.AnimationName != animationName.stringValue){
|
if(component.AnimationName != animationName.stringValue){
|
||||||
animationName.stringValue = currentState.Animation.Name;
|
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(loop);
|
||||||
EditorGUILayout.PropertyField(timeScale);
|
EditorGUILayout.PropertyField(timeScale);
|
||||||
component.timeScale = Math.Max(component.timeScale, 0);
|
component.timeScale = Math.Max(component.timeScale, 0);
|
||||||
|
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
if(!isPrefab){
|
if(!isPrefab){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user