diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-26 08:26:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 08:26:19 +0100 |
commit | ee770b02fc9d7bf51c5092f39439f3dd0f20ab16 (patch) | |
tree | e5164abd171237741aa2de9ea42fdcba1ef570d0 | |
parent | d92d16926e38c0764cffaeafd8578400daa387b7 (diff) | |
parent | 6acd450328653d2b52308f54172535f0b92a7051 (diff) |
Merge pull request #43084 from DavidSichma/toggle0
fix toggle mask bit 0
-rw-r--r-- | editor/editor_properties.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 48a9ca90c4..9e7ddd9fac 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -614,7 +614,7 @@ public: const Ref<InputEventMouseButton> mb = p_ev; - if (mb.is_valid() && mb->get_button_index() == BUTTON_LEFT && mb->is_pressed() && hovered_index > 0) { + if (mb.is_valid() && mb->get_button_index() == BUTTON_LEFT && mb->is_pressed() && hovered_index >= 0) { // Toggle the flag. // We base our choice on the hovered flag, so that it always matches the hovered flag. if (value & (1 << hovered_index)) { |