浏览代码

Allow selecting text in shader compilation logs

Marc Gilleron 2 年之前
父节点
当前提交
e0d2b7835d
共有 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 = memnew(RichTextLabel);
 	error_text->set_v_size_flags(SIZE_EXPAND_FILL);
 	error_text->set_v_size_flags(SIZE_EXPAND_FILL);
+	error_text->set_selection_enabled(true);
 	main_vb->add_child(error_text);
 	main_vb->add_child(error_text);
 }
 }