Kaynağa Gözat

Merge pull request #887 from jbousquie/fix.SPS

fix SPS mesh name that wasn't correctly set
Raanan Weber 9 yıl önce
ebeveyn
işleme
481e9f5a5c
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/Particles/babylon.solidParticleSystem.ts

+ 2 - 2
src/Particles/babylon.solidParticleSystem.ts

@@ -66,7 +66,7 @@ module BABYLON {
         private _w: number = 0.0;
 
 
-        constructor(name: string, scene: Scene, options?: { updatable?: boolean, isPickable?: boolean }) {
+        constructor(name: string, scene: Scene, options?: { updatable?: boolean; isPickable?: boolean }) {
             this.name = name;
             this._scene = scene;
             this._camera = scene.activeCamera;
@@ -104,7 +104,7 @@ module BABYLON {
             if (this._colors32) {
                 vertexData.set(this._colors32, VertexBuffer.ColorKind);
             }
-            var mesh = new Mesh(name, this._scene);
+            var mesh = new Mesh(this.name, this._scene);
             vertexData.applyToMesh(mesh, this._updatable);
             this.mesh = mesh;
             this.mesh.isPickable = this._pickable;