Explorar o código

Fix assetContainer duplicating geometries

David Catuhe %!s(int64=4) %!d(string=hai) anos
pai
achega
5206ff7933
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  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);
         });