summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorjeffres <jeffres@gmail.com>2022-09-17 17:41:13 +0200
committerjeffres <jeffres@gmail.com>2022-09-17 17:49:51 +0200
commit1c98f03784bd77390205df111d28446fd72f0a38 (patch)
treeddc23915c86c333ed5b0d07e191321e1df833f9a /editor
parent57bdddce02370af3d13e6edc583afdc17264147d (diff)
Fix selected shader file not being highlighted in shader editor list
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/shader_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.cpp b/editor/plugins/shader_editor_plugin.cpp
index 246bc4b183..815a61f8ac 100644
--- a/editor/plugins/shader_editor_plugin.cpp
+++ b/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) {