Jelajahi Sumber

Fix assetContainer duplicating geometries

David Catuhe 4 tahun lalu
induk
melakukan
5206ff7933
1 mengubah file dengan 0 tambahan dan 6 penghapusan
  1. 0 6
      src/assetContainer.ts

+ 0 - 6
src/assetContainer.ts

@@ -239,9 +239,6 @@ export class AssetContainer extends AbstractScene {
         this.lights.forEach((o) => {
         this.lights.forEach((o) => {
             this.scene.addLight(o);
             this.scene.addLight(o);
         });
         });
-        this.geometries.forEach((o) => {
-            this.scene.addGeometry(o);
-        });
         this.meshes.forEach((o) => {
         this.meshes.forEach((o) => {
             this.scene.addMesh(o);
             this.scene.addMesh(o);
         });
         });
@@ -300,9 +297,6 @@ export class AssetContainer extends AbstractScene {
         this.lights.forEach((o) => {
         this.lights.forEach((o) => {
             this.scene.removeLight(o);
             this.scene.removeLight(o);
         });
         });
-        this.geometries.forEach((o) => {
-            this.scene.removeGeometry(o);
-        });
         this.meshes.forEach((o) => {
         this.meshes.forEach((o) => {
             this.scene.removeMesh(o);
             this.scene.removeMesh(o);
         });
         });