summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-01-09 12:14:51 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-01-09 12:17:48 +0300
commit9b3da766401e2cadc8059f17c65b0023b8085bda (patch)
tree8199ae3fe2924cff2490d63d7c90406b4f68b4d7 /scene/gui
parentb6be2ac62153929ff7be0800cab5b0a7b95946a8 (diff)
Fix unpressable buttons
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/base_button.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/base_button.h b/scene/gui/base_button.h
index f5a7ce5c82..f7c864c5fb 100644
--- a/scene/gui/base_button.h
+++ b/scene/gui/base_button.h
@@ -46,7 +46,7 @@ public:
};
private:
- BitField<MouseButtonMask> button_mask;
+ BitField<MouseButtonMask> button_mask = MouseButtonMask::LEFT;
bool toggle_mode = false;
bool shortcut_in_tooltip = true;
bool was_mouse_pressed = false;