Explorar el Código

fix the way of removeing a mesh

OpenShift guest hace 11 años
padre
commit
011770a869
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -4030,7 +4030,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 	function removeInstancesWebglObjects( objlist, object ) {
 
-		delete objlist[object]; 
+		delete objlist[object.id]; 
 
 	};