You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Do not error flood if removing default environment. Closes #9945
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user