David Catuhe 5 anni fa
parent
commit
3962720b2e
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      src/Animations/animation.ts

+ 5 - 5
src/Animations/animation.ts

@@ -96,7 +96,7 @@ export class Animation {
         } else if (from instanceof Color3) {
         } else if (from instanceof Color3) {
             dataType = Animation.ANIMATIONTYPE_COLOR3;
             dataType = Animation.ANIMATIONTYPE_COLOR3;
         } else if (from instanceof Color4) {
         } else if (from instanceof Color4) {
-            dataType = Animation.ANIMATIONTYPE_COLOR4;            
+            dataType = Animation.ANIMATIONTYPE_COLOR4;
         } else if (from instanceof Size) {
         } else if (from instanceof Size) {
             dataType = Animation.ANIMATIONTYPE_SIZE;
             dataType = Animation.ANIMATIONTYPE_SIZE;
         }
         }
@@ -582,7 +582,7 @@ export class Animation {
      */
      */
     public color4InterpolateFunction(startValue: Color4, endValue: Color4, gradient: number): Color4 {
     public color4InterpolateFunction(startValue: Color4, endValue: Color4, gradient: number): Color4 {
         return Color4.Lerp(startValue, endValue, gradient);
         return Color4.Lerp(startValue, endValue, gradient);
-    }    
+    }
 
 
     /**
     /**
      * @hidden Internal use only
      * @hidden Internal use only
@@ -711,7 +711,7 @@ export class Animation {
                                 return this.color4InterpolateFunction(startValue, endValue, gradient);
                                 return this.color4InterpolateFunction(startValue, endValue, gradient);
                             case Animation.ANIMATIONLOOPMODE_RELATIVE:
                             case Animation.ANIMATIONLOOPMODE_RELATIVE:
                                 return this.color4InterpolateFunction(startValue, endValue, gradient).add(state.offsetValue.scale(state.repeatCount));
                                 return this.color4InterpolateFunction(startValue, endValue, gradient).add(state.offsetValue.scale(state.repeatCount));
-                        }                        
+                        }
                     // Matrix
                     // Matrix
                     case Animation.ANIMATIONTYPE_MATRIX:
                     case Animation.ANIMATIONTYPE_MATRIX:
                         switch (state.loopMode) {
                         switch (state.loopMode) {
@@ -874,7 +874,7 @@ export class Animation {
     /**
     /**
      * Color3 animation type
      * Color3 animation type
      */
      */
-    public static readonly ANIMATIONTYPE_COLOR4 = 7;    
+    public static readonly ANIMATIONTYPE_COLOR4 = 7;
     /**
     /**
      * Vector2 animation type
      * Vector2 animation type
      */
      */
@@ -969,7 +969,7 @@ export class Animation {
                     break;
                     break;
                 case Animation.ANIMATIONTYPE_COLOR4:
                 case Animation.ANIMATIONTYPE_COLOR4:
                     data = Color4.FromArray(key.values);
                     data = Color4.FromArray(key.values);
-                    break;                    
+                    break;
                 case Animation.ANIMATIONTYPE_VECTOR3:
                 case Animation.ANIMATIONTYPE_VECTOR3:
                 default:
                 default:
                     data = Vector3.FromArray(key.values);
                     data = Vector3.FromArray(key.values);