1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Fix visual shader not being updated when switching tabs

This commit is contained in:
Yuri Rubinsky
2024-06-20 13:37:16 +03:00
parent b75f0485ba
commit 3bbbedc144
3 changed files with 13 additions and 0 deletions

View File

@@ -365,6 +365,11 @@ void ShaderEditorPlugin::_shader_selected(int p_index) {
if (edited_shaders[p_index].shader_editor) {
edited_shaders[p_index].shader_editor->validate_script();
}
if (edited_shaders[p_index].visual_shader_editor) {
edited_shaders[p_index].visual_shader_editor->validate_script();
}
shader_tabs->set_current_tab(p_index);
shader_list->select(p_index);
}