mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-08 04:51:49 +02:00
Don't error multiple times when trying to load missing default bus layout
This commit is contained in:
parent
d0e7a30683
commit
8f7ea2132b
@ -1239,7 +1239,10 @@ void EditorAudioBuses::_load_layout() {
|
|||||||
void EditorAudioBuses::_load_default_layout() {
|
void EditorAudioBuses::_load_default_layout() {
|
||||||
String layout_path = ProjectSettings::get_singleton()->get("audio/default_bus_layout");
|
String layout_path = ProjectSettings::get_singleton()->get("audio/default_bus_layout");
|
||||||
|
|
||||||
Ref<AudioBusLayout> state = ResourceLoader::load(layout_path, "", true);
|
Ref<AudioBusLayout> state;
|
||||||
|
if (ResourceLoader::exists(layout_path)) {
|
||||||
|
state = ResourceLoader::load(layout_path, "", true);
|
||||||
|
}
|
||||||
if (state.is_null()) {
|
if (state.is_null()) {
|
||||||
EditorNode::get_singleton()->show_warning(vformat(TTR("There is no '%s' file."), layout_path));
|
EditorNode::get_singleton()->show_warning(vformat(TTR("There is no '%s' file."), layout_path));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user