web: fix animation stopped premature (#6630)
This commit is contained in:
@@ -74,7 +74,7 @@ class App {
|
||||
render() {
|
||||
if (this.animator) {
|
||||
const ms = Date.now() - this.animationStartTime;
|
||||
this.animator.applyAnimation(0, (ms / 1000) % 1.0);
|
||||
this.animator.applyAnimation(0, ms / 1000);
|
||||
this.animator.updateBoneMatrices();
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class App {
|
||||
|
||||
if (this.animator) {
|
||||
const ms = Date.now() - this.animationStartTime;
|
||||
this.animator.applyAnimation(0, (ms / 1000) % 1.0);
|
||||
this.animator.applyAnimation(0, ms / 1000);
|
||||
this.animator.updateBoneMatrices();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user