Pārlūkot izejas kodu

Fix speedRAtio for animationGroup

David Catuhe 7 gadi atpakaļ
vecāks
revīzija
4edd77f0f2

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 9076 - 9076
Playground/babylon.d.txt


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 10908 - 10908
dist/preview release/babylon.d.ts


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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;
         };

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
dist/preview release/babylon.worker.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 12497 - 12497
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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;
         };

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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;