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

Fixed geometry colors check. See #3649.

上级 42ada814
......@@ -3050,9 +3050,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( attributes.color >= 0 ) {
if ( object.geometry.faces.length && object.geometry.faces[0].vertexColors.length > 0 ||
object.geometry.faces[0].color ||
object.geometry.__webglColorBuffer ) {
if ( object.geometry !== undefined && object.geometry.colors.length > 0 || object.geometry.faces.length > 0 ) {
_gl.bindBuffer( _gl.ARRAY_BUFFER, geometryGroup.__webglColorBuffer );
enableAttribute( attributes.color );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册