diff options
| author | MarianoGNU | 2015-12-27 19:06:30 -0300 |
|---|---|---|
| committer | MarianoGNU | 2016-01-10 10:36:43 -0300 |
| commit | 3169b66d15e983e012b1da181672fef61f3660a0 (patch) | |
| tree | 6a7a26d135521ee570d7558e3b6be1b6f0f2ca1c /scene/2d/screen_button.cpp | |
| parent | 3a3ce982b0157c21b4976a347d4c1c254093970f (diff) | |
| download | godot-3169b66d15e983e012b1da181672fef61f3660a0.tar.gz godot-3169b66d15e983e012b1da181672fef61f3660a0.tar.zst godot-3169b66d15e983e012b1da181672fef61f3660a0.zip | |
Diffstat (limited to 'scene/2d/screen_button.cpp')
| -rw-r--r-- | scene/2d/screen_button.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/screen_button.cpp b/scene/2d/screen_button.cpp index d7f9b191f..fac94f19d 100644 --- a/scene/2d/screen_button.cpp +++ b/scene/2d/screen_button.cpp @@ -102,6 +102,10 @@ void TouchScreenButton::_notification(int p_what) { action_id=-1; } } break; + case NOTIFICATION_EXIT_TREE: { + if (is_pressed()) + Input::get_singleton()->action_release(action); + } break; } } |
