We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee4acfb commit 9f4cfb1Copy full SHA for 9f4cfb1
editor/plugins/shader_editor_plugin.cpp
@@ -161,6 +161,10 @@ void ShaderEditorPlugin::edit(Object *p_object) {
161
if (edited_shaders[i].shader.ptr() == s) {
162
shader_tabs->set_current_tab(i);
163
shader_list->select(i);
164
+ TextShaderEditor *text_shader_editor = Object::cast_to<TextShaderEditor>(edited_shaders[i].shader_editor);
165
+ if (text_shader_editor) {
166
+ text_shader_editor->get_code_editor()->get_text_editor()->grab_focus();
167
+ }
168
return;
169
}
170
0 commit comments