Merge pull request #33443 from dalexeev/master

Fixed initial title in audio buses editor
This commit is contained in:
Rémi Verschelde 2019-11-08 12:28:19 +01:00 committed by GitHub
commit a22d0b5109
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);