Explorar o código

Rename DefaultParticle to Bubbles

Popov72 %!s(int64=5) %!d(string=hai) anos
pai
achega
f03a6302ca

+ 1 - 1
nodeEditor/src/components/preview/previewManager.ts

@@ -309,7 +309,7 @@ export class PreviewManager {
                 }
             } else if (this._globalState.mode === NodeMaterialModes.Particle) {
                 switch (this._globalState.previewMeshType) {
-                    case PreviewMeshType.DefaultParticle:
+                    case PreviewMeshType.Bubbles:
                         this._particleSystem = new ParticleSystem("particles", 4000, this._scene);
                         this._particleSystem.particleTexture = new Texture("https://assets.babylonjs.com/particles/textures/explosion/Flare.png", this._scene);
                         this._particleSystem.minSize = 0.1;

+ 1 - 1
nodeEditor/src/components/preview/previewMeshControlComponent.tsx

@@ -105,7 +105,7 @@ export class PreviewMeshControlComponent extends React.Component<IPreviewMeshCon
         ];
 
         var particleTypeOptions = [
-            { label: "Default particle system", value: PreviewMeshType.DefaultParticle },
+            { label: "Bubbles", value: PreviewMeshType.Bubbles },
             { label: "Explosion", value: PreviewMeshType.Explosion },
             { label: "Fire", value: PreviewMeshType.Fire },
             { label: "Rain", value: PreviewMeshType.Rain },

+ 6 - 2
nodeEditor/src/components/preview/previewMeshType.ts

@@ -1,14 +1,18 @@
 export enum PreviewMeshType {
+    // Meshes
     Sphere,
-    Box, 
+    Box,
     Torus,
     Cylinder,
     Plane,
     ShaderBall,
-    DefaultParticle,
+
+    // Particle systems
+    Bubbles,
     Smoke,
     Rain,
     Explosion,
     Fire,
+
     Custom,
 }

+ 1 - 1
nodeEditor/src/components/propertyTab/propertyTabComponent.tsx

@@ -274,7 +274,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
                     this.props.globalState.nodeMaterial!.setToDefaultPostProcess();
                     break;
                 case NodeMaterialModes.Particle:
-                    this.props.globalState.previewMeshType = PreviewMeshType.DefaultParticle;
+                    this.props.globalState.previewMeshType = PreviewMeshType.Bubbles;
                     this.props.globalState.nodeMaterial!.setToDefaultParticle();
                     break;
             }

+ 1 - 1
nodeEditor/src/nodeEditor.ts

@@ -84,7 +84,7 @@ export class NodeEditor {
         }
         window.addEventListener('beforeunload', () => {
             if(DataStorage.ReadNumber("PreviewMeshType", PreviewMeshType.Box) === PreviewMeshType.Custom){
-                DataStorage.WriteNumber("PreviewMeshType", globalState.mode === NodeMaterialModes.Material ? PreviewMeshType.Box : PreviewMeshType.DefaultParticle);
+                DataStorage.WriteNumber("PreviewMeshType", globalState.mode === NodeMaterialModes.Material ? PreviewMeshType.Box : PreviewMeshType.Bubbles);
             }
         });
     }