提交 7546df0b 编写于 作者: M Mugen87

WebGLRenderer: Better code structure in .projectObject()

上级 e1bbaeea
......@@ -1434,11 +1434,7 @@ function WebGLRenderer( parameters ) {
var groups = geometry.groups;
var materials = material.materials;
if ( groups.length === 0 ) {
console.warn( 'THREE.WebGLRenderer: MultiMaterial can not be used without groups.' );
}
if ( groups.length > 0 ) {
// push a render item for each group of the geometry
......@@ -1463,6 +1459,12 @@ function WebGLRenderer( parameters ) {
}
} else {
console.warn( 'THREE.WebGLRenderer: MultiMaterial can not be used without groups.' );
}
} else {
pushRenderItem( object, geometry, material, _vector3.z, null );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册