Sfoglia il codice sorgente

Update babylon.node.ts

Return animatable for beginAnimation method
Pavel 7 anni fa
parent
commit
6b2ed6d3c7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/babylon.node.ts

+ 1 - 1
src/babylon.node.ts

@@ -418,7 +418,7 @@
                 return;
             }
 
-            this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
+            return this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
         }
 
         public serializeAnimationRanges(): any {