Merge pull request #49890 from voxelv/fix_tree_range_click_timeout_crash_46648

Avoid using a nullptr root in Tree._range_click_timeout().
This commit is contained in:
Hugo Locurcio 2021-07-07 01:21:32 +02:00 committed by GitHub
commit ce941397e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2155,6 +2155,10 @@ void Tree::_range_click_timeout() {
}
}
if (!root) {
return;
}
click_handled = false;
Ref<InputEventMouseButton> mb;
mb.instantiate();