Restructure code for parsing xml to make it more readable

This commit is contained in:
Ylva Selling
2021-04-08 11:18:23 +02:00
parent a84e8ee48b
commit 4e358fe122
3 changed files with 64 additions and 59 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ namespace openspace::skybrowser::luascriptfunctions {
ghoul::lua::checkArgumentsAndThrow(L, 0, "lua::createBrowser");
SkyBrowserModule* module = global::moduleEngine->module<SkyBrowserModule>();
// If no data has been loaded yet, load it!
if (module->getWWTDataHandler()->getImages().size() == 0) {
if (module->getWWTDataHandler()->getLoadedImages().size() == 0) {
moveBrowser(L);
}