Jelajahi Sumber

updated geometry.ts : CreateTorus new signature call

jbousquie 10 tahun lalu
induk
melakukan
c2b5c1dc39
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/Mesh/babylon.geometry.ts

+ 1 - 1
src/Mesh/babylon.geometry.ts

@@ -657,7 +657,7 @@
             }
 
             public _regenerateVertexData(): VertexData {
-                return VertexData.CreateTorus(this.diameter, this.thickness, this.tessellation, this.side);
+                return VertexData.CreateTorus({diameter: this.diameter, thickness: this.thickness, tessellation: this.tessellation, sideOrientation: this.side});
             }
 
             public copy(id: string): Geometry {