Explorar o código

added default height

jbousquie %!s(int64=10) %!d(string=hai) anos
pai
achega
6ddf075fa3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Mesh/babylon.mesh.vertexData.ts

+ 1 - 1
src/Mesh/babylon.mesh.vertexData.ts

@@ -788,7 +788,7 @@
             var subdivisions: number;
 
             if (options.height) {
-                height = options.height;
+                height = options.height || 3;
                 diameterTop = options.diameterTop || 1;
                 diameterBottom = options.diameterBottom || 1;
                 tessellation = options.tessellation || 24;