Преглед на файлове

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 = 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);
 }
 }