File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
src/components/crystal-toolkit/scene Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -616,22 +616,19 @@ export default class Scene {
616
616
} ) ;
617
617
} ;
618
618
619
- // TODO: does it make sense to split this code into two cases? NO!
620
619
// set up the threeObjects and containers
621
620
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
624
623
rootObject . name = 'root' ;
625
624
rootObject . visible = true ;
626
625
const maxTilingArray = [ this . maxTiling , this . maxTiling , this . maxTiling ] ;
626
+ // get list of tiles needed
627
627
let tiles = _getTiles ( maxTilingArray ) ;
628
+ // render all tiles
628
629
traverseTiles ( sceneJson , rootObject , tiles ) ;
630
+ // hide/show tiles as appropriate
629
631
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
635
632
636
633
// can cause memory leak
637
634
this . scene . add ( rootObject ) ;
You can’t perform that action at this time.
0 commit comments