diff options
author | David Sichma <sichmada@gmail.com> | 2020-10-26 02:08:39 +0100 |
---|---|---|
committer | David Sichma <sichmada@gmail.com> | 2020-10-26 02:08:39 +0100 |
commit | 6acd450328653d2b52308f54172535f0b92a7051 (patch) | |
tree | 69e50c71758187d6ce95c46de8bfdeffa8800036 | |
parent | e16729a8c3664f6ca00665714c7d88acd4ef603e (diff) |
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)) { |