Explorar el Código

Fix for handling face colours in default attribute value check.

MiiBond hace 12 años
padre
commit
42ada81419
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/renderers/WebGLRenderer.js

+ 1 - 0
src/renderers/WebGLRenderer.js

@@ -3051,6 +3051,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 ) {
 
 					_gl.bindBuffer( _gl.ARRAY_BUFFER, geometryGroup.__webglColorBuffer );