Explorar el Código

Update WebGLRenderer.js

Optimizing compiler best practice. Don't change the shape of objects.
Adria2 hace 12 años
padre
commit
f66ae3ed36
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -3210,7 +3210,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 			if ( dispose && ! attributeItem.dynamic ) {
 
-				delete attributeItem.array;
+				attributeItem.array = null;
 
 			}