Browse Source

Allow selecting text in shader compilation logs

Marc Gilleron 2 years ago
parent
commit
e0d2b7835d
1 changed files with 1 additions and 0 deletions
  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);
 }
 }