We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaf53cf commit 21df5d4Copy full SHA for 21df5d4
1 file changed
src/three/plugins/images/ImageOverlayPlugin.js
@@ -287,10 +287,11 @@ export class ImageOverlayPlugin {
287
288
this._onTileDownloadStart = ( { tile, url } ) => {
289
290
- // TODO: it would be better if there were either a separate event or flag indicating that a tile is an external
291
- // tileset or not. We won't want to run "init" on tiles that have geometry.
292
- if ( ! /\.json$/.test( url ) ) {
+ // TODO: it's not super straight forward to detect whether a tile is "geometry" or not ahead of time. Checking
+ // for "subtree" or "json" are good broad strokes but some cases will still be missed.
+ if ( ! /\.json$/i.test( url ) && ! /\.subtree/i.test( url ) ) {
293
294
+ this.processedTiles.add( tile );
295
this._initTileOverlayInfo( tile );
296
297
}
0 commit comments