Fix bug with applying colormap in RenderableBillboardsCloud

This commit is contained in:
Alexander Bock
2017-11-08 12:21:15 -06:00
parent b50b52d351
commit 44806687bf

View File

@@ -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]);