mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 00:44:43 -05:00
Fixed bug in renderablestars and added support for Sun as a simple star.
This commit is contained in:
@@ -644,8 +644,17 @@ bool RenderableStars::readSpeckFile() {
|
||||
for (int i = 0; i < _nValuesPerStar; ++i) {
|
||||
str >> values[i];
|
||||
}
|
||||
|
||||
_fullData.insert(_fullData.end(), values.begin(), values.end());
|
||||
bool nullArray = true;
|
||||
for (int i = 0; i < values.size(); ++i) {
|
||||
if (values[i] != 0.0) {
|
||||
nullArray = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!nullArray) {
|
||||
_fullData.insert(_fullData.end(), values.begin(), values.end());
|
||||
}
|
||||
|
||||
} while (!file.eof());
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user