File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
src/components/crystal-toolkit/scene Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -400,8 +400,8 @@ export default class Scene {
400
400
private debugDOMElement ?,
401
401
cameraState ?: CameraState
402
402
) {
403
- this . tiling = tiling || 0 ;
404
- this . maxTiling = maxTiling || [ 0 , 0 , 0 ] ;
403
+ this . tiling = tiling ;
404
+ this . maxTiling = maxTiling ;
405
405
this . arrayOfTileRoots = Scene . getEmptyTilesArray ( [
406
406
this . maxTiling ,
407
407
this . maxTiling ,
@@ -522,10 +522,6 @@ export default class Scene {
522
522
return tiles ;
523
523
} ;
524
524
525
- const _alternateTiles = ( x : number ) => {
526
- return ( - 1 ) ** ( x + 1 ) * Math . trunc ( ( x + 1 ) / 2 ) ;
527
- } ;
528
-
529
525
const emptyLattice = [
530
526
[ 0 , 0 , 0 ] ,
531
527
[ 0 , 0 , 0 ] ,
@@ -551,9 +547,7 @@ export default class Scene {
551
547
this . arrayOfTileRoots [ x ] [ y ] [ z ] . push ( tileRootObject ) ;
552
548
553
549
let tileOffsets : number [ ] [ ] = lattice . map ( ( vector : number [ ] , index : number ) => {
554
- return vector . map ( ( x : number ) => {
555
- return x * _alternateTiles ( tile [ index ] ) ;
556
- } ) ;
550
+ return vector . map ( ( x : number ) => x * tile [ index ] ) ;
557
551
} ) ;
558
552
traverseScene ( sceneJson , tileRootObject , tileOffsets , '' ) ;
559
553
}
You can’t perform that action at this time.
0 commit comments