浏览代码

added default height

jbousquie 10 年之前
父节点
当前提交
6ddf075fa3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;