mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-25 13:38:35 -05:00
easily fixed comments on PR
This commit is contained in:
@@ -60,7 +60,7 @@ void FieldlinesState::scalePositions(float scale) {
|
||||
p *= scale;
|
||||
}
|
||||
}
|
||||
#pragma optimize("", off)
|
||||
|
||||
bool FieldlinesState::loadStateFromOsfls(const std::string& pathToOsflsFile) {
|
||||
std::ifstream ifs(pathToOsflsFile, std::ifstream::binary);
|
||||
if (!ifs.is_open()) {
|
||||
@@ -136,7 +136,6 @@ bool FieldlinesState::loadStateFromOsfls(const std::string& pathToOsflsFile) {
|
||||
bool FieldlinesState::loadStateFromJson(const std::string& pathToJsonFile,
|
||||
fls::Model Model, float coordToMeters)
|
||||
{
|
||||
|
||||
// --------------------- ENSURE FILE IS VALID, THEN PARSE IT --------------------- //
|
||||
std::ifstream ifs(pathToJsonFile);
|
||||
|
||||
@@ -296,8 +295,6 @@ void FieldlinesState::saveStateToOsfls(const std::string& absPath) {
|
||||
ofs.write(reinterpret_cast<char*>(vec.data()), sizeof(float) * nPoints);
|
||||
}
|
||||
ofs.write(allExtraQuantityNamesInOne.c_str(), nStringBytes);
|
||||
|
||||
ofs.close();
|
||||
}
|
||||
|
||||
// TODO: This should probably be rewritten, but this is the way the files were structured
|
||||
|
||||
Reference in New Issue
Block a user