Преглед на файлове

Fixed memory leak due to transformNode not being disposed

David Catuhe преди 6 години
родител
ревизия
7bafe46b7f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/scene.ts

+ 1 - 1
src/scene.ts

@@ -4562,7 +4562,7 @@ export class Scene extends AbstractScene implements IAnimatable {
             this.meshes[0].dispose(true);
         }
         while (this.transformNodes.length) {
-            this.removeTransformNode(this.transformNodes[0]);
+            this.transformNodes[0].dispose(true);
         }
 
         // Release cameras