-Fixes a bunch of stdout errors, closes #2763 closes #2731

This commit is contained in:
Juan Linietsky 2016-01-23 19:51:51 -03:00
parent a2992d5955
commit 6c27df8df6
9 changed files with 23 additions and 13 deletions

View file

@ -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();