瀏覽代碼

Fix speedRAtio for animationGroup

David Catuhe 7 年之前
父節點
當前提交
4edd77f0f2

File diff suppressed because it is too large
+ 9076 - 9076
Playground/babylon.d.txt


File diff suppressed because it is too large
+ 10908 - 10908
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.js


+ 1 - 1
dist/preview release/babylon.max.js

@@ -42296,7 +42296,7 @@ var BABYLON;
                 this.restart();
             }
             else {
-                this.start(loop);
+                this.start(loop, this._speedRatio);
             }
             return this;
         };

File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.worker.js


File diff suppressed because it is too large
+ 12497 - 12497
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 2 - 1
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -42177,6 +42177,7 @@ var BABYLON;
                 if (this._speedRatio === value) {
                     return;
                 }
+                this._speedRatio = value;
                 for (var index = 0; index < this._animatables.length; index++) {
                     var animatable = this._animatables[index];
                     animatable.speedRatio = this._speedRatio;
@@ -42296,7 +42297,7 @@ var BABYLON;
                 this.restart();
             }
             else {
-                this.start(loop);
+                this.start(loop, this._speedRatio);
             }
             return this;
         };

File diff suppressed because it is too large
+ 8 - 8
dist/preview release/viewer/babylon.viewer.js


+ 3 - 1
src/Animations/babylon.animationGroup.ts

@@ -44,6 +44,8 @@ module BABYLON {
                 return;
             }
 
+            this._speedRatio = value;
+
             for (var index = 0; index < this._animatables.length; index++) {
                 let animatable = this._animatables[index];
                 animatable.speedRatio = this._speedRatio;
@@ -177,7 +179,7 @@ module BABYLON {
                 }
                 this.restart();
             } else {
-                this.start(loop);
+                this.start(loop, this._speedRatio);
             }
 
             return this;