From 2e136c8a879e86687dbc4b6647048f63b6e78be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ir=C3=A9n=C3=A9e=20Dubourg?= Date: Tue, 4 Feb 2025 15:08:19 +0100 Subject: [PATCH] fix(RasterTile): fix deepScan issues --- src/Renderer/RasterTile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Renderer/RasterTile.js b/src/Renderer/RasterTile.js index ac26ec4a11..812beef8fb 100644 --- a/src/Renderer/RasterTile.js +++ b/src/Renderer/RasterTile.js @@ -120,7 +120,7 @@ class RasterTile extends THREE.EventDispatcher { this.level = EMPTY_TEXTURE_ZOOM; } - disposeAtIndexes(indexes = null) { + disposeAtIndexes(indexes) { for (const index of indexes) { const texture = this.textures[index]; if (texture && texture.isTexture) { @@ -263,7 +263,7 @@ export class RasterElevationTile extends RasterTile { const parentDataElevation = parentTexture && parentTexture.image && parentTexture.image.data; const dataElevation = texture.image && texture.image.data; - if (parentDataElevation && dataElevation && !checkNodeElevationTextureValidity(dataElevation, nodatavalue)) { + if (dataElevation && !checkNodeElevationTextureValidity(dataElevation, nodatavalue)) { insertSignificantValuesFromParent(dataElevation, parentDataElevation && dataParent(texture, parentTexture, parentDataElevation, pitch), nodatavalue); } }