提交 a2b09461 编写于 作者: M Mr.doob

PlaneBufferGeometry: Avoid breakage when using a float for *Segments

上级 8d955f93
......@@ -19,8 +19,8 @@ THREE.PlaneBufferGeometry = function ( width, height, widthSegments, heightSegme
var width_half = width / 2;
var height_half = height / 2;
var gridX = widthSegments || 1;
var gridY = heightSegments || 1;
var gridX = Math.floor( widthSegments ) || 1;
var gridY = Math.floor( heightSegments ) || 1;
var gridX1 = gridX + 1;
var gridY1 = gridY + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册