aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/shader_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-01-23 19:51:51 -0300
committerJuan Linietsky2016-01-23 19:51:51 -0300
commit6c27df8df609337867c108c5adb66174393e190b (patch)
tree11c1e8ad5f1f844fe6af2032784fd8e2a2951420 /tools/editor/plugins/shader_editor_plugin.cpp
parenta2992d5955ff4f84f829dcab4859b4f5b5399a2c (diff)
downloadgodot-6c27df8df609337867c108c5adb66174393e190b.tar.gz
godot-6c27df8df609337867c108c5adb66174393e190b.tar.zst
godot-6c27df8df609337867c108c5adb66174393e190b.zip
-Fixes a bunch of stdout errors, closes #2763 closes #2731
Diffstat (limited to 'tools/editor/plugins/shader_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/shader_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/shader_editor_plugin.cpp b/tools/editor/plugins/shader_editor_plugin.cpp
index 65b5365b5..18d8f5efc 100644
--- a/tools/editor/plugins/shader_editor_plugin.cpp
+++ b/tools/editor/plugins/shader_editor_plugin.cpp
@@ -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();