From 636492c66b58b3e4403755185e4371bf59d5fbdd Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Sun, 5 Sep 2021 20:45:00 -0700 Subject: [PATCH] Update TilesRendererBase.js --- src/base/TilesRendererBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/TilesRendererBase.js b/src/base/TilesRendererBase.js index 473f8d5c0..0884422cb 100644 --- a/src/base/TilesRendererBase.js +++ b/src/base/TilesRendererBase.js @@ -221,7 +221,7 @@ export class TilesRendererBase { // "content" should only indicate loadable meshes, not external tile sets const extension = getUrlExtension( tile.content.uri ); - const isExternalTileSet = extension && extension.toLowerCase() === 'json'; + const isExternalTileSet = Boolean( extension && extension.toLowerCase() === 'json' ); tile.__externalTileSet = isExternalTileSet; tile.__contentEmpty = isExternalTileSet;