mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
Fixed timeScale bug. Added timeScale to inspector.
This commit is contained in:
parent
cc89e1a3a6
commit
9c403565e0
@ -72,5 +72,6 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
|
||||
}
|
||||
|
||||
EditorGUILayout.PropertyField(loop);
|
||||
EditorGUILayout.PropertyField(timeScale);
|
||||
}
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ public class SkeletonAnimation : SkeletonRenderer {
|
||||
|
||||
deltaTime *= timeScale;
|
||||
skeleton.Update(deltaTime);
|
||||
state.Update(deltaTime * timeScale);
|
||||
state.Update(deltaTime);
|
||||
state.Apply(skeleton);
|
||||
if (UpdateBones != null) UpdateBones(this);
|
||||
skeleton.UpdateWorldTransform();
|
||||
|
||||
@ -72,5 +72,6 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
|
||||
}
|
||||
|
||||
EditorGUILayout.PropertyField(loop);
|
||||
EditorGUILayout.PropertyField(timeScale);
|
||||
}
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ public class SkeletonAnimation : SkeletonRenderer {
|
||||
|
||||
deltaTime *= timeScale;
|
||||
skeleton.Update(deltaTime);
|
||||
state.Update(deltaTime * timeScale);
|
||||
state.Update(deltaTime);
|
||||
state.Apply(skeleton);
|
||||
if (UpdateBones != null) UpdateBones(this);
|
||||
skeleton.UpdateWorldTransform();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user