mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-11 13:59:50 -05:00
Fix immediate crash if a new scene would be loaded through the Lua interface
This commit is contained in:
@@ -168,9 +168,15 @@ bool SceneGraph::loadFromFile(const std::string& sceneDescription) {
|
||||
LERROR("Specified common folder '" << fullCommonFolder << "' did not exist");
|
||||
else {
|
||||
if (!commonFolder.empty()) {
|
||||
FileSys.registerPathToken(_commonModuleToken, commonFolder);
|
||||
FileSys.registerPathToken(
|
||||
_commonModuleToken, commonFolder,
|
||||
ghoul::filesystem::FileSystem::Override::Yes
|
||||
);
|
||||
size_t nKeys = moduleDictionary.size();
|
||||
moduleDictionary.setValue(std::to_string(nKeys + 1), commonFolder);
|
||||
moduleDictionary.setValue(
|
||||
std::to_string(nKeys + 1),
|
||||
commonFolder
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user