Browse Source

Update WebGLRenderer.js

Optimizing compiler best practice. Don't change the shape of objects.
Adria2 12 years ago
parent
commit
f66ae3ed36
1 changed files with 1 additions and 1 deletions
  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;
 
 			}