Skip to content

Commit b6b10b0

Browse files
committed
ImageOverlayPlugin: Add check for processed tiles
1 parent 21df5d4 commit b6b10b0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/three/plugins/images/ImageOverlayPlugin.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,14 @@ export class ImageOverlayPlugin {
910910
const { tileInfo, controller } = overlayInfo.get( overlay );
911911
processedTiles.forEach( tile => {
912912

913+
if ( ! tileInfo.has( tile ) ) {
914+
915+
// check for the case where tiles have been added but not properly initialized with the
916+
// given overlay, yet
917+
return;
918+
919+
}
920+
913921
const {
914922
meshInfo,
915923
range,

0 commit comments

Comments
 (0)