Skip to content

Commit 7a01e7d

Browse files
committed
remove unused old code
1 parent 8925f75 commit 7a01e7d

File tree

1 file changed

+5
-8
lines changed
  • src/components/crystal-toolkit/scene

1 file changed

+5
-8
lines changed

src/components/crystal-toolkit/scene/Scene.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -616,22 +616,19 @@ export default class Scene {
616616
});
617617
};
618618

619-
// TODO: does it make sense to split this code into two cases? NO!
620619
// set up the threeObjects and containers
621620
const rootObject = new THREE.Object3D();
622-
// if (this.maxTiling > 0) {
623-
// if needed, create a parent for all Scene objects
621+
622+
// set up the threeObjects and containers
624623
rootObject.name = 'root';
625624
rootObject.visible = true;
626625
const maxTilingArray = [this.maxTiling, this.maxTiling, this.maxTiling];
626+
// get list of tiles needed
627627
let tiles = _getTiles(maxTilingArray);
628+
// render all tiles
628629
traverseTiles(sceneJson, rootObject, tiles);
630+
// hide/show tiles as appropriate
629631
this.updateTiles(this.tiling);
630-
// } else {
631-
// rootObject.name = sceneJson.name!;
632-
// sceneJson.visible && (rootObject.visible = sceneJson.visible);
633-
// traverseScene(sceneJson, rootObject, emptyLattice, '');
634-
// } // TODO: take this out, hope things dont break, fix if they do
635632

636633
// can cause memory leak
637634
this.scene.add(rootObject);

0 commit comments

Comments
 (0)