From 7edfe4031747ad1757c7fbc1dd454f667cd5d708 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Wed, 31 Jul 2013 18:13:14 +0200 Subject: [PATCH] Updated builds. --- build/three.js | 3 +-- build/three.min.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/build/three.js b/build/three.js index 66f3d65bb3..1256159406 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 7c111b2fd0..7bfbc95fed 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