Explorar o código

Merge pull request #5002 from gero3/FixMemoryProblem

fix the way of removeing a mesh
Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
92b7c7c9a6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

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