소스 검색

Fix input passing to script editor even if not visible

Franklin Sobrinho 9 년 전
부모
커밋
d6adb9b9c2
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();