浏览代码

Fix assetContainer duplicating geometries

David Catuhe 4 年之前
父节点
当前提交
5206ff7933
共有 1 个文件被更改,包括 0 次插入6 次删除
  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);
         });