Procházet zdrojové kódy

Fix assetContainer duplicating geometries

David Catuhe před 4 roky
rodič
revize
5206ff7933
1 změnil soubory, kde provedl 0 přidání a 6 odebrání
  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.scene.addLight(o);
         });
-        this.geometries.forEach((o) => {
-            this.scene.addGeometry(o);
-        });
         this.meshes.forEach((o) => {
             this.scene.addMesh(o);
         });
@@ -300,9 +297,6 @@ export class AssetContainer extends AbstractScene {
         this.lights.forEach((o) => {
             this.scene.removeLight(o);
         });
-        this.geometries.forEach((o) => {
-            this.scene.removeGeometry(o);
-        });
         this.meshes.forEach((o) => {
             this.scene.removeMesh(o);
         });