2
0
Fork 0

check for null event in Viewport::push_input

4.1
Alex Drozd 2023-05-14 16:04:12 +07:00
parent 5c653c27cd
commit a5a1c3a03c
1 changed files with 1 additions and 0 deletions

@ -2904,6 +2904,7 @@ bool Viewport::_sub_windows_forward_input(const Ref<InputEvent> &p_event) {
void Viewport::push_input(const Ref<InputEvent> &p_event, bool p_local_coords) {
ERR_FAIL_COND(!is_inside_tree());
ERR_FAIL_COND(p_event.is_null());
if (disable_input) {
return;