Skip to content

Commit

Permalink
fix(RasterTile): fix deepScan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
airnez committed Feb 4, 2025
1 parent f977943 commit 2e136c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Renderer/RasterTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 2e136c8

Please sign in to comment.