mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 02:29:49 -06:00
Prevent crash from using colormap without entries
Can happen if all colormap variables were set, but the file didn't exist or couldn't be loaded
This commit is contained in:
@@ -1053,7 +1053,7 @@ std::vector<float> RenderableBillboardsCloud::createDataSlice() {
|
||||
const double r = glm::length(p);
|
||||
maxRadius = std::max(maxRadius, r);
|
||||
|
||||
if (_hasColorMapFile) {
|
||||
if (_hasColorMapFile && _useColorMap && !_colorMap.entries.empty()) {
|
||||
for (int j = 0; j < 4; ++j) {
|
||||
result.push_back(position[j]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user