Merge pull request #19151 from Web-eWorks/freelook-fixes

Revert #14753, as it is buggy and no longer necessary.
This commit is contained in:
Rémi Verschelde 2018-05-25 12:52:14 +02:00 committed by GitHub
commit 37cda57959
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1562,7 +1562,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
if (mb->is_pressed()) {
Size2 pos = mpos;
if (gui.mouse_focus && mb->get_button_index() != gui.mouse_focus_button && mb->get_button_index() == BUTTON_LEFT) {
if (gui.mouse_focus && mb->get_button_index() != gui.mouse_focus_button) {
//do not steal mouse focus and stuff