Fixed upper limit bug and added new asset details to main asteroid belt

This commit is contained in:
GPayne
2020-03-02 15:45:52 -07:00
parent ce79a7031e
commit b222bb26db
3 changed files with 16 additions and 2 deletions
@@ -252,9 +252,9 @@ RenderableSmallBody::RenderableSmallBody(const ghoul::Dictionary& dictionary)
if (dictionary.hasKeyAndValue<glm::vec3>(LineColorInfo.identifier)) {
_appearance.lineColor = dictionary.value<glm::vec3>(LineColorInfo.identifier);
}
if (dictionary.hasKeyAndValue<double>("FadeInfo")) {
if (dictionary.hasKeyAndValue<double>(FadeInfo.identifier)) {
_appearance.lineFade = static_cast<float>(
dictionary.value<double>("FadeInfo")
dictionary.value<double>(FadeInfo.identifier)
);
}
else {
@@ -311,6 +311,8 @@ void RenderableSmallBody::readJplSbDb(const std::string& filename) {
std::streamoff numberOfLines = std::count(std::istreambuf_iterator<char>(file),
std::istreambuf_iterator<char>(), '\n' );
file.seekg(std::ios_base::beg); // reset iterator to beginning of file
_sbData.clear();
_sbNames.clear();
std::string line;
std::streamoff csvLine = -1;