You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
@@ -234,7 +234,7 @@ void ShaderEditor::_tab_changed(int p_which) {
|
||||
|
||||
ShaderTextEditor *shader_editor = tab_container->get_tab_control(p_which)->cast_to<ShaderTextEditor>();
|
||||
|
||||
if (shader_editor)
|
||||
if (shader_editor && is_inside_tree())
|
||||
shader_editor->get_text_edit()->grab_focus();
|
||||
|
||||
ensure_select_current();
|
||||
|
||||
Reference in New Issue
Block a user