Skip to content

Commit

Permalink
Fixed crash in PlanetTileImagesLoader when attribute images not avail…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
Matthew Reid committed Apr 2, 2023
1 parent 24a9d57 commit 026c903
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ TileImagesPtr PlanetTileImagesLoader::load(const QuadTreeTileKey& key, std::func
}
return image;
});
}
if (!images->attributeMapImage->image)
{
images->attributeMapImage = std::nullopt;
if (!images->attributeMapImage->image)
{
images->attributeMapImage = std::nullopt;
}
}
}
else if (!images->attributeMapImage && false) // Experimental. If enabled, attribute map will be generated from the albedo map, otherwise no attributes will be used.
Expand Down

0 comments on commit 026c903

Please sign in to comment.