Do not error flood if removing default environment. Closes #9945
This commit is contained in:
parent
6f762ad709
commit
4d4c1dfc1b
1 changed files with 4 additions and 0 deletions
|
@ -542,6 +542,10 @@ bool SceneTree::idle(float p_time) {
|
|||
|
||||
if (env_path != String()) {
|
||||
fallback = ResourceLoader::load(env_path);
|
||||
if (fallback.is_null()) {
|
||||
//could not load fallback, set as empty
|
||||
ProjectSettings::get_singleton()->set("rendering/environment/default_environment", "");
|
||||
}
|
||||
} else {
|
||||
fallback.unref();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue