mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
2a8327d6b1
@ -72,5 +72,7 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(loop);
|
EditorGUILayout.PropertyField(loop);
|
||||||
|
EditorGUILayout.PropertyField(timeScale);
|
||||||
|
component.timeScale = Math.Max(component.timeScale, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -81,7 +81,7 @@ public class SkeletonAnimation : SkeletonRenderer {
|
|||||||
|
|
||||||
deltaTime *= timeScale;
|
deltaTime *= timeScale;
|
||||||
skeleton.Update(deltaTime);
|
skeleton.Update(deltaTime);
|
||||||
state.Update(deltaTime * timeScale);
|
state.Update(deltaTime);
|
||||||
state.Apply(skeleton);
|
state.Apply(skeleton);
|
||||||
if (UpdateBones != null) UpdateBones(this);
|
if (UpdateBones != null) UpdateBones(this);
|
||||||
skeleton.UpdateWorldTransform();
|
skeleton.UpdateWorldTransform();
|
||||||
|
|||||||
@ -72,5 +72,7 @@ public class SkeletonAnimationInspector : SkeletonRendererInspector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(loop);
|
EditorGUILayout.PropertyField(loop);
|
||||||
|
EditorGUILayout.PropertyField(timeScale);
|
||||||
|
component.timeScale = Math.Max(component.timeScale, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -81,7 +81,7 @@ public class SkeletonAnimation : SkeletonRenderer {
|
|||||||
|
|
||||||
deltaTime *= timeScale;
|
deltaTime *= timeScale;
|
||||||
skeleton.Update(deltaTime);
|
skeleton.Update(deltaTime);
|
||||||
state.Update(deltaTime * timeScale);
|
state.Update(deltaTime);
|
||||||
state.Apply(skeleton);
|
state.Apply(skeleton);
|
||||||
if (UpdateBones != null) UpdateBones(this);
|
if (UpdateBones != null) UpdateBones(this);
|
||||||
skeleton.UpdateWorldTransform();
|
skeleton.UpdateWorldTransform();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user