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.
1 parent fe01776 commit 1ff8e85Copy full SHA for 1ff8e85
editor/editor_audio_buses.cpp
@@ -1226,7 +1226,10 @@ void EditorAudioBuses::_load_layout() {
1226
void EditorAudioBuses::_load_default_layout() {
1227
String layout_path = GLOBAL_GET("audio/buses/default_bus_layout");
1228
1229
- Ref<AudioBusLayout> state = ResourceLoader::load(layout_path, "", ResourceFormatLoader::CACHE_MODE_IGNORE);
+ Ref<AudioBusLayout> state;
1230
+ if (ResourceLoader::exists(layout_path)) {
1231
+ state = ResourceLoader::load(layout_path, "", ResourceFormatLoader::CACHE_MODE_IGNORE);
1232
+ }
1233
if (state.is_null()) {
1234
EditorNode::get_singleton()->show_warning(vformat(TTR("There is no '%s' file."), layout_path));
1235
return;
0 commit comments