提交 0bca5266 编写于 作者: J Jonne Nauha

ObjLoader: Ignore silently o/g line declarations that are not followed by any...

ObjLoader: Ignore silently o/g line declarations that are not followed by any geometry (f) before a new o/g is started. Discussed in #6682.
上级 f855c88b
......@@ -487,6 +487,10 @@ THREE.OBJLoader.prototype = {
var geometry = object.geometry;
var isLine = (geometry.type === 'Line');
// Skip o/g line declarations that did not follow with any faces
if ( geometry.vertices.length === 0 )
continue;
var buffergeometry = new THREE.BufferGeometry();
buffergeometry.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array( geometry.vertices ), 3 ) );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册