Merge pull request #23670 from merumelu/default-bus-layout-check
Use `ResourceLoader::exists` to check for default audio bus layout
This commit is contained in:
commit
4fa8b804a9
1 changed files with 1 additions and 1 deletions
|
@ -1017,7 +1017,7 @@ void AudioServer::update() {
|
|||
|
||||
void AudioServer::load_default_bus_layout() {
|
||||
|
||||
if (FileAccess::exists("res://default_bus_layout.tres")) {
|
||||
if (ResourceLoader::exists("res://default_bus_layout.tres")) {
|
||||
Ref<AudioBusLayout> default_layout = ResourceLoader::load("res://default_bus_layout.tres");
|
||||
if (default_layout.is_valid()) {
|
||||
set_bus_layout(default_layout);
|
||||
|
|
Loading…
Reference in a new issue