소스 검색

REcorder for particle system [inspector]

David Catuhe 5 년 전
부모
커밋
15a192ad01
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      inspector/src/components/actionTabs/tabs/propertyGrids/particleSystems/valueGradientGridComponent.tsx
  2. 2 3
      src/Misc/gradients.ts

+ 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 */