You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Clean Input::frame_parsed_events before de-initialising scripting languages to ensure no script created events exist at the exit.
This commit is contained in:
@@ -4182,6 +4182,12 @@ void Main::cleanup(bool p_force) {
|
||||
ERR_FAIL_COND(!_start_success);
|
||||
}
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (input) {
|
||||
input->flush_frame_parsed_events();
|
||||
}
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < TextServerManager::get_singleton()->get_interface_count(); i++) {
|
||||
TextServerManager::get_singleton()->get_interface(i)->cleanup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user