diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2019-11-08 13:17:39 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2019-11-08 13:17:39 +0300 |
commit | c9d73014183bbef93fe55979074acbdefedfb1de (patch) | |
tree | 6f1c0c356580de18c8be08f436a95b769794f2ab | |
parent | 621dc7022f9b9e09790481d8915858fa4d007ba4 (diff) |
Fixed initial title in audio buses editor
Previously, 'default_bus_layout.tres' was always displayed at startup,
even if 'audio/default_bus_layout' was changed in Project Settings.
-rw-r--r-- | editor/editor_audio_buses.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_audio_buses.cpp b/editor/editor_audio_buses.cpp index b331a39535..acfdea28e2 100644 --- a/editor/editor_audio_buses.cpp +++ b/editor/editor_audio_buses.cpp @@ -1329,7 +1329,8 @@ EditorAudioBuses::EditorAudioBuses() { add_child(top_hb); file = memnew(Label); - file->set_text(String(TTR("Layout")) + ": " + "default_bus_layout.tres"); + String layout_path = ProjectSettings::get_singleton()->get("audio/default_bus_layout"); + file->set_text(String(TTR("Layout")) + ": " + layout_path.get_file()); file->set_clip_text(true); file->set_h_size_flags(SIZE_EXPAND_FILL); top_hb->add_child(file); |