diff --git a/build/three.js b/build/three.js index 66f3d65bb307d3f205ca3c914b92465bfe313ce5..1256159406215b19e95bce93f892ba1311859e0f 100644 --- a/build/three.js +++ b/build/three.js @@ -22379,8 +22379,7 @@ THREE.WebGLRenderer = function ( parameters ) { if ( attributes.color >= 0 ) { - if ( object.geometry.faces.length && object.geometry.faces[0].vertexColors.length > 0 || - 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 ); diff --git a/build/three.min.js b/build/three.min.js index 7c111b2fd046af370b4b19f90cd6ba8af43bd1a8..7bfbc95fedfb9a4923d0293f67148c9923fe6e81 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -437,9 +437,9 @@ e.__webglVertexBuffer),h(a.position),j.vertexAttribPointer(a.position,3,j.FLOAT, for(i=f.morphTargetInfluences;md.numSupportedMorphTargets?(l.sort(k),l.length=d.numSupportedMorphTargets):l.length>d.numSupportedMorphNormals?l.sort(k):0===l.length&&l.push([0,0]);for(m=0;m