Fixed raptor demo desync with frame-by-frame after playing animation.

This commit is contained in:
NathanSweet 2017-09-13 00:39:24 +02:00
parent 0e9b434385
commit 43e1c6b708

View File

@ -143,7 +143,7 @@ var spritesheetsDemo = function(loadingComplete, bgColor) {
animationState.update(delta);
var current = animationState.getCurrent(0);
if (current.animation.name == "walk") current.time = walkLastTimePrecise;
if (current.animation.name == "walk") current.trackTime = walkLastTimePrecise;
animationState.apply(skeleton);
skeleton.updateWorldTransform();