Browse Source

Merge pull request #437 from Temechon/patch-29

Update babylon.scene.ts
David Catuhe 10 years ago
parent
commit
5bebaebefb
1 changed files with 2 additions and 5 deletions
  1. 2 5
      Babylon/babylon.scene.ts

+ 2 - 5
Babylon/babylon.scene.ts

@@ -692,10 +692,7 @@
             var delay = now - this._animationStartDate;
 
             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));
         }
     }
-} 
+}