summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-05-25 12:52:14 +0200
committerGitHub <noreply@github.com>2018-05-25 12:52:14 +0200
commit37cda5795961c6eeca456aa38adb40a06cac5084 (patch)
treec2ff11df83c0c477d270c949d28d408fe40467b3 /scene
parent121eaddf118045ebc044e26fa0f65df6b8e06ef7 (diff)
parent1198662b2b8aa7458f9d8d3afe66085fdfc0d113 (diff)
Merge pull request #19151 from Web-eWorks/freelook-fixes
Revert #14753, as it is buggy and no longer necessary.
Diffstat (limited to 'scene')
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index f631fd6f3a..ca9be9823a 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -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