summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2019-03-03 17:12:19 -0300
committerJuan Linietsky <juan@godotengine.org>2019-03-03 17:12:19 -0300
commitae886a6f32b3cacc342ab3c4b52fa5e09d91fa49 (patch)
tree23549ab3d7c080f100925ab576ba21e5d0e71b5b /core
parent4d875f115cbc661c9e631ba2f9fc9fd95366ff52 (diff)
Ability to keep pumping messages while being debugged, may be a solution for #21431
Diffstat (limited to 'core')
-rw-r--r--core/os/os.h1
-rw-r--r--core/script_debugger_remote.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/os/os.h b/core/os/os.h
index d6541034fd..30cfb32b89 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -518,6 +518,7 @@ public:
bool is_restart_on_exit_set() const;
List<String> get_restart_on_exit_arguments() const;
+ virtual void process_and_drop_events() { }
OS();
virtual ~OS();
};
diff --git a/core/script_debugger_remote.cpp b/core/script_debugger_remote.cpp
index 3ed25f118d..e7ff7a3aef 100644
--- a/core/script_debugger_remote.cpp
+++ b/core/script_debugger_remote.cpp
@@ -311,6 +311,7 @@ void ScriptDebuggerRemote::debug(ScriptLanguage *p_script, bool p_can_continue)
} else {
OS::get_singleton()->delay_usec(10000);
+ OS::get_singleton()->process_and_drop_events();
}
}