浏览代码

Merge pull request #437 from Temechon/patch-29

Update babylon.scene.ts
David Catuhe 10 年之前
父节点
当前提交
5bebaebefb
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      Babylon/babylon.scene.ts

+ 2 - 5
Babylon/babylon.scene.ts

@@ -692,10 +692,7 @@
             var delay = now - this._animationStartDate;
             var delay = now - this._animationStartDate;
 
 
             for (var index = 0; index < this._activeAnimatables.length; index++) {
             for (var index = 0; index < this._activeAnimatables.length; index++) {
-                if (!this._activeAnimatables[index]._animate(delay)) {
-                    this._activeAnimatables.splice(index, 1);
-                    index--;
-                }
+                this._activeAnimatables[index]._animate(delay);
             }
             }
         }
         }
 
 
@@ -2094,4 +2091,4 @@
             return this._getByTags(this.materials, tagsQuery, forEach).concat(this._getByTags(this.multiMaterials, tagsQuery, forEach));
             return this._getByTags(this.materials, tagsQuery, forEach).concat(this._getByTags(this.multiMaterials, tagsQuery, forEach));
         }
         }
     }
     }
-} 
+}