瀏覽代碼

Merge pull request #33443 from dalexeev/master

Fixed initial title in audio buses editor
Rémi Verschelde 5 年之前
父節點
當前提交
a22d0b5109
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      editor/editor_audio_buses.cpp

+ 2 - 1
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);