mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 03:00:58 -06:00
Fix bug with applying colormap in RenderableBillboardsCloud
This commit is contained in:
@@ -1245,7 +1245,10 @@ void RenderableBillboardsCloud::createDataSlice() {
|
||||
break;
|
||||
}
|
||||
|
||||
int colorIndex = (c == static_cast<int>(colorBins.size())) - 1 ? 0 : c + 1;
|
||||
int colorIndex = 0;
|
||||
if (c != static_cast<int>(colorBins.size() - 1)) {
|
||||
colorIndex = c + 1;
|
||||
}
|
||||
|
||||
for (auto j = 0; j < 4; ++j) {
|
||||
_slicedData.push_back(_colorMapData[colorIndex][j]);
|
||||
|
||||
Reference in New Issue
Block a user