From cc8ada005dda25d92a657af2f16ea0fc88610983 Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Fri, 2 Feb 2018 18:27:09 +0800 Subject: [PATCH] remove SkinViewer.animationSpeed changing SkinViewer.animationSpeed will cause the animation to be discontinuous, use AnimationHandle.speed instead --- src/viewer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index 2d6283f..e0f6018 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -58,7 +58,6 @@ class SkinViewer { this.domElement = options.domElement; this.animation = options.animation || null; this.animationPaused = false; - this.animationSpeed = 3; this.animationTime = 0; this.disposed = false; @@ -161,7 +160,7 @@ class SkinViewer { if (!this.animationPaused) { this.animationTime++; if (this.animation) { - invokeAnimation(this.animation, this.playerObject, this.animationTime / 100.0 * this.animationSpeed); + invokeAnimation(this.animation, this.playerObject, this.animationTime / 100.0); } } this.renderer.render(this.scene, this.camera);