mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-25 13:38:34 -06:00
Update Ghoul repository
Adapt to changes that absPath is not called automatically as often anymore Remove atmosphereearth.scene
This commit is contained in:
@@ -919,12 +919,12 @@ void OpenSpaceEngine::runGlobalCustomizationScripts(const std::string& sceneDesc
|
||||
if (_configurationManager->hasKey(k)) {
|
||||
ghoul::Dictionary dict = _configurationManager->value<ghoul::Dictionary>(k);
|
||||
for (int i = 1; i <= dict.size(); ++i) {
|
||||
std::string script = dict.value<std::string>(std::to_string(i));
|
||||
std::string script = absPath(dict.value<std::string>(std::to_string(i)));
|
||||
|
||||
if (FileSys.fileExists(script)) {
|
||||
try {
|
||||
LINFO("Running global customization script: " << script);
|
||||
ghoul::lua::runScriptFile(state, absPath(script));
|
||||
ghoul::lua::runScriptFile(state, script);
|
||||
} catch (ghoul::RuntimeError& e) {
|
||||
LERRORC(e.component, e.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user