Просмотр исходного кода

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

fix WebGLAttributes.remove bug
Mr.doob 8 лет назад
Родитель
Сommit
5f99b586e6
1 измененных файлов с 2 добавлено и 0 удалено
  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 ) {