summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-09 13:46:39 +0200
committerGitHub <noreply@github.com>2021-06-09 13:46:39 +0200
commitfbe53a7064f94009060ab31ae720b339d666920d (patch)
tree9cf436398053a8c2fea61be095d2920b2e0954c9 /scene
parentf178e7abd7d0af21d326f2e818bcd07a487b19fe (diff)
parent4c6ad8abcda0999557d35e35811002de5ff1b18e (diff)
Merge pull request #49155 from winterpixelgames/button-pressed-during-button-up-signal
Emit button_up signal after setting pressed to false.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/base_button.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp
index 4e18a15b41..66155958cf 100644
--- a/scene/gui/base_button.cpp
+++ b/scene/gui/base_button.cpp
@@ -172,10 +172,9 @@ void BaseButton::on_action_event(Ref<InputEvent> p_event) {
status.hovering = false;
}
}
- // pressed state should be correct with button_up signal
- emit_signal("button_up");
status.press_attempt = false;
status.pressing_inside = false;
+ emit_signal("button_up");
}
update();