浏览代码

REcorder for particle system [inspector]

David Catuhe 5 年之前
父节点
当前提交
15a192ad01

+ 1 - 1
inspector/src/components/actionTabs/tabs/propertyGrids/particleSystems/valueGradientGridComponent.tsx

@@ -8,7 +8,7 @@ import { Nullable } from 'babylonjs/types';
 import { ColorGradientStepGridComponent } from './colorGradientStepGridComponent';
 import { Color4, Color3 } from 'babylonjs/Maths/math.color';
 import { LinkButtonComponent } from '../../../lines/linkButtonComponent';
-import { IParticleSystem } from 'babylonjs';
+import { IParticleSystem } from 'babylonjs/Particles/IParticleSystem';
 
 export enum GradientGridMode {
     Factor,

+ 2 - 3
src/Misc/gradients.ts

@@ -23,13 +23,12 @@ export class ColorGradient implements IValueGradient {
      */
     public color2?: Color4;
 
-
     /** Creates a new color4 gradient */
     public constructor(gradient: number, color1: Color4, color2?: Color4) {
         this.gradient = gradient;
         this.color1 = color1;
         this.color2 = color2;
-    }       
+    }
 
     /**
      * Will get a color picked randomly between color1 and color2.
@@ -61,7 +60,7 @@ export class Color3Gradient implements IValueGradient {
     public constructor(gradient: number, color: Color3) {
         this.gradient = gradient;
         this.color = color;
-    }    
+    }
 }
 
 /** Class used to store factor gradient */