Procházet zdrojové kódy

Merge pull request #11477 from 06wj/patch-attribute

fix WebGLAttributes.remove bug
Mr.doob před 8 roky
rodič
revize
5f99b586e6
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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 ) {