summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorAle Camara <services@alecamara.com>2022-11-13 19:47:22 +0000
committerAle Camara <services@alecamara.com>2022-11-14 13:29:21 +0000
commitaebf3d9401d7e773ced8b1b63bb1ee02d8899b39 (patch)
treea08d09974f4f5b76798c4a87053ac344c4fccc79 /editor/plugins
parentb05e1e7d6982c1a0ebbba2e1da60bf05fd2a009a (diff)
Fix clicking in gradient editor
- When double-clicking on the gradient we should open the colour picker and create a colour key. - Instead, we were also evaluating the click further down producing the colour key to move around.
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/gradient_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/gradient_editor.cpp b/editor/plugins/gradient_editor.cpp
index 7039ada10a..f6d5adcd68 100644
--- a/editor/plugins/gradient_editor.cpp
+++ b/editor/plugins/gradient_editor.cpp
@@ -203,6 +203,7 @@ void GradientEditor::gui_input(const Ref<InputEvent> &p_event) {
grabbed = _get_point_from_pos(mb->get_position().x);
_show_color_picker();
accept_event();
+ return;
}
// Delete point on right click.