Преглед на файлове

Merge pull request #3490 from TheHX/issue-3453

Fix input passing to script editor even if not visible
Rémi Verschelde преди 9 години
родител
ревизия
9a2dd3ebbb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tools/editor/plugins/script_editor_plugin.cpp

+ 1 - 1
tools/editor/plugins/script_editor_plugin.cpp

@@ -1694,7 +1694,7 @@ void ScriptEditor::ensure_select_current() {
 
 			Ref<Script> script = ste->get_edited_script();
 
-			if (!grab_focus_block && is_inside_tree())
+			if (!grab_focus_block && is_visible())
 				ste->get_text_edit()->grab_focus();
 
 			edit_menu->show();