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

WebGLRenderer: Handle Line not using Line*Material.

上级 517076c4
......@@ -1285,7 +1285,10 @@ THREE.WebGLRenderer = function ( parameters ) {
var mode = ( object.mode === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
state.setLineWidth( material.linewidth * pixelRatio );
// In case user is not using Line*Material by mistake
var lineWidth = material.linewidth !== undefined ? material.linewidth : 1;
state.setLineWidth( lineWidth * pixelRatio );
var index = geometry.attributes.index;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册