mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
[haxe] Fix SkeletonSprite.advanceTime to use the actual delta time.
This commit is contained in:
parent
8f8bf06610
commit
f2f1a8ce46
@ -49,6 +49,6 @@ class Main extends Sprite {
|
||||
starlingSingleton.start();
|
||||
Starling.current.stage.color = 0x000000;
|
||||
|
||||
SceneManager.getInstance().switchScene(new SequenceExample());
|
||||
SceneManager.getInstance().switchScene(new BasicExample());
|
||||
}
|
||||
}
|
||||
|
||||
@ -338,13 +338,8 @@ class SkeletonSprite extends DisplayObject implements IAnimatable {
|
||||
return _smoothing;
|
||||
}
|
||||
|
||||
var updated = false;
|
||||
|
||||
public function advanceTime(time:Float):Void {
|
||||
if (!updated) {
|
||||
// updated = true;
|
||||
_state.update(0.016 * 0.1);
|
||||
}
|
||||
_state.update(time);
|
||||
_state.apply(skeleton);
|
||||
skeleton.updateWorldTransform();
|
||||
this.setRequiresRedraw();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user