浏览代码

Update babylon.animatable.ts

KK 9 年之前
父节点
当前提交
d1356638a6
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/Animations/babylon.animatable.ts

+ 0 - 2
src/Animations/babylon.animatable.ts

@@ -107,7 +107,6 @@
                 if (idx > -1) {
                 if (idx > -1) {
 
 
                     var animations = this._animations;
                     var animations = this._animations;
-                    var numberOfAnimationsStopped = 0;
                     
                     
                     for (var index = animations.length - 1; index >= 0; index--) {
                     for (var index = animations.length - 1; index >= 0; index--) {
                         if (typeof animationName === "string" && animations[index].name != animationName) {
                         if (typeof animationName === "string" && animations[index].name != animationName) {
@@ -116,7 +115,6 @@
 
 
                         animations[index].reset();
                         animations[index].reset();
                         animations.splice(index, 1);
                         animations.splice(index, 1);
-                        numberOfAnimationsStopped++;
                     }
                     }
 
 
                     if (animations.length == 0) {
                     if (animations.length == 0) {