Skip to content

Commit eeb9221

Browse files
committed
add defaults for tiling props
1 parent a5c000b commit eeb9221

File tree

1 file changed

+2
-2
lines changed
  • src/components/crystal-toolkit/scene

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ export default class Scene {
400400
private debugDOMElement?,
401401
cameraState?: CameraState
402402
) {
403-
this.tiling = tiling;
404-
this.maxTiling = maxTiling;
403+
this.tiling = tiling || 0;
404+
this.maxTiling = maxTiling || [0, 0, 0];
405405
this.arrayOfTileRoots = Scene.getEmptyTilesArray([
406406
this.maxTiling,
407407
this.maxTiling,

0 commit comments

Comments
 (0)