mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-06 19:49:36 -06:00
Prevent crash when reloading renderable that only has labels and no data
Occurred when unchecking and rechecking the "Draw elements" property for example the "Eclipltic Sphere Labels"
This commit is contained in:
@@ -1492,6 +1492,11 @@ void RenderableBillboardsCloud::createDataSlice() {
|
||||
ZoneScoped
|
||||
|
||||
_slicedData.clear();
|
||||
|
||||
if (_fullData.empty() || _nValuesPerAstronomicalObject == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_hasColorMapFile) {
|
||||
_slicedData.reserve(8 * (_fullData.size() / _nValuesPerAstronomicalObject));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user