Sfoglia il codice sorgente

Move AllowMatricesInterpolation to static property for animations

David Catuhe 8 anni fa
parent
commit
0aa9d94b48

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


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


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

@@ -36889,7 +36889,6 @@ var BABYLON;
             this._blendingFactor = 0;
             // The set of event that will be linked to this animation
             this._events = new Array();
-            this.allowMatricesInterpolation = false;
             this.blendingSpeed = 0.01;
             this._ranges = {};
             this.targetPropertyPath = targetProperty.split(".");
@@ -37230,7 +37229,7 @@ var BABYLON;
                             switch (loopMode) {
                                 case Animation.ANIMATIONLOOPMODE_CYCLE:
                                 case Animation.ANIMATIONLOOPMODE_CONSTANT:
-                                    if (this.allowMatricesInterpolation) {
+                                    if (Animation.AllowMatricesInterpolation) {
                                         return this.matrixInterpolateFunction(startValue, endValue, gradient);
                                     }
                                 case Animation.ANIMATIONLOOPMODE_RELATIVE:
@@ -37598,6 +37597,7 @@ var BABYLON;
                 }
             }
         };
+        Animation.AllowMatricesInterpolation = false;
         // Statics
         Animation._ANIMATIONTYPE_FLOAT = 0;
         Animation._ANIMATIONTYPE_VECTOR3 = 1;

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


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


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


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


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

@@ -30397,7 +30397,6 @@ var BABYLON;
             this._blendingFactor = 0;
             // The set of event that will be linked to this animation
             this._events = new Array();
-            this.allowMatricesInterpolation = false;
             this.blendingSpeed = 0.01;
             this._ranges = {};
             this.targetPropertyPath = targetProperty.split(".");
@@ -30738,7 +30737,7 @@ var BABYLON;
                             switch (loopMode) {
                                 case Animation.ANIMATIONLOOPMODE_CYCLE:
                                 case Animation.ANIMATIONLOOPMODE_CONSTANT:
-                                    if (this.allowMatricesInterpolation) {
+                                    if (Animation.AllowMatricesInterpolation) {
                                         return this.matrixInterpolateFunction(startValue, endValue, gradient);
                                     }
                                 case Animation.ANIMATIONLOOPMODE_RELATIVE:
@@ -31106,6 +31105,7 @@ var BABYLON;
                 }
             }
         };
+        Animation.AllowMatricesInterpolation = false;
         // Statics
         Animation._ANIMATIONTYPE_FLOAT = 0;
         Animation._ANIMATIONTYPE_VECTOR3 = 1;

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


+ 3 - 2
src/Animations/babylon.animation.ts

@@ -89,6 +89,8 @@
     }
 
     export class Animation {
+        public static AllowMatricesInterpolation = false;
+
         private _keys: Array<{frame:number, value: any, inTangent?: any, outTangent?: any}>;
         private _offsetsCache = {};
         private _highLimitsCache = {};
@@ -103,7 +105,6 @@
         public targetPropertyPath: string[];
         public currentFrame: number;
 
-        public allowMatricesInterpolation = false;
 
         public blendingSpeed = 0.01;
         private _originalBlendValue: any;
@@ -520,7 +521,7 @@
                             switch (loopMode) {
                                 case Animation.ANIMATIONLOOPMODE_CYCLE:
                                 case Animation.ANIMATIONLOOPMODE_CONSTANT:
-                                    if (this.allowMatricesInterpolation) {
+                                    if (Animation.AllowMatricesInterpolation) {
                                         return this.matrixInterpolateFunction(startValue, endValue, gradient);
                                     }
                                 case Animation.ANIMATIONLOOPMODE_RELATIVE: