mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 19:50:03 -06:00
Don't try to initialize an asset if the initialization has failed (closes #1830)
This commit is contained in:
@@ -182,8 +182,13 @@ void AssetManager::update() {
|
||||
continue;
|
||||
}
|
||||
|
||||
_rootAssets.push_back(a);
|
||||
a->load(nullptr);
|
||||
if (a->isFailed()) {
|
||||
// The loading might fail because of any number of reasons, most likely of
|
||||
// them some Lua syntax error
|
||||
continue;
|
||||
}
|
||||
_rootAssets.push_back(a);
|
||||
a->startSynchronizations();
|
||||
|
||||
_toBeInitialized.push_back(a);
|
||||
|
||||
Reference in New Issue
Block a user