提交 6fe80acd 编写于 作者: M Mugen87

WebGLRenderer: Gracefully handle geometries in initial state.

上级 c8457c4f
......@@ -742,6 +742,14 @@ function WebGLRenderer( parameters ) {
var index = geometry.index;
var position = geometry.attributes.position;
//
if ( index !== null && index.count === 0 ) return;
if ( position === undefined || position.count === 0 ) return;
//
var rangeFactor = 1;
if ( material.wireframe === true ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册