浏览代码

Merge pull request #68928 from Zylann/shader_log_allow_selection

Allow selecting text in shader compilation logs
Rémi Verschelde 2 年之前
父节点
当前提交
82992523c0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/plugins/shader_file_editor_plugin.cpp

+ 1 - 0
editor/plugins/shader_file_editor_plugin.cpp

@@ -286,6 +286,7 @@ ShaderFileEditor::ShaderFileEditor() {
 
 	error_text = memnew(RichTextLabel);
 	error_text->set_v_size_flags(SIZE_EXPAND_FILL);
+	error_text->set_selection_enabled(true);
 	main_vb->add_child(error_text);
 }