Browse Source

Merge pull request #65993 from jeffres/fix-highligthing-of-selected-file-in-shader-editor

Yuri Rubinsky 2 years ago
parent
commit
4ab3fdcda0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/plugins/shader_editor_plugin.cpp

+ 1 - 0
editor/plugins/shader_editor_plugin.cpp

@@ -1366,6 +1366,7 @@ void ShaderEditorPlugin::_shader_selected(int p_index) {
 		edited_shaders[p_index].shader_editor->validate_script();
 	}
 	shader_tabs->set_current_tab(p_index);
+	shader_list->select(p_index);
 }
 
 void ShaderEditorPlugin::_shader_list_clicked(int p_item, Vector2 p_local_mouse_pos, MouseButton p_mouse_button_index) {