Update Ghoul repository

Adapt to changes in Ghoul
This commit is contained in:
Alexander Bock
2020-02-12 00:01:24 +01:00
parent fde307ead9
commit 81fda6c8db
16 changed files with 34 additions and 40 deletions

View File

@@ -411,7 +411,8 @@ void NavigationHandler::saveNavigationState(const std::string& filepath,
return;
}
state = navigationState(*referenceFrame).dictionary();
} else {
}
else {
state = navigationState().dictionary();
}
@@ -419,9 +420,8 @@ void NavigationHandler::saveNavigationState(const std::string& filepath,
std::string absolutePath = absPath(filepath);
LINFO(fmt::format("Saving camera position: {}", absolutePath));
ghoul::DictionaryLuaFormatter formatter;
std::ofstream ofs(absolutePath.c_str());
ofs << "return " << formatter.format(state.dictionary());
ofs << "return " << ghoul::formatLua(state.dictionary());
ofs.close();
}
}