We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b704508 + 1ff8e85 commit 17665ecCopy full SHA for 17665ec
editor/editor_audio_buses.cpp
@@ -1228,7 +1228,10 @@ void EditorAudioBuses::_load_layout() {
1228
void EditorAudioBuses::_load_default_layout() {
1229
String layout_path = GLOBAL_GET("audio/buses/default_bus_layout");
1230
1231
- Ref<AudioBusLayout> state = ResourceLoader::load(layout_path, "", ResourceFormatLoader::CACHE_MODE_IGNORE);
+ Ref<AudioBusLayout> state;
1232
+ if (ResourceLoader::exists(layout_path)) {
1233
+ state = ResourceLoader::load(layout_path, "", ResourceFormatLoader::CACHE_MODE_IGNORE);
1234
+ }
1235
if (state.is_null()) {
1236
EditorNode::get_singleton()->show_warning(vformat(TTR("There is no '%s' file."), layout_path));
1237
return;
0 commit comments