Explorar el Código

fix WebGLAttributes.remove bug

06wj hace 8 años
padre
commit
746b308a6e
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/renderers/webgl/WebGLAttributes.js

+ 2 - 0
src/renderers/webgl/WebGLAttributes.js

@@ -107,6 +107,8 @@ function WebGLAttributes( gl ) {
 
 	function remove( attribute ) {
 
+		if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data;
+		
 		var data = buffers[ attribute.uuid ];
 
 		if ( data ) {