瀏覽代碼

Update babylon.node.ts

Return animatable for beginAnimation method
Pavel 7 年之前
父節點
當前提交
6b2ed6d3c7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {