From aebf3d9401d7e773ced8b1b63bb1ee02d8899b39 Mon Sep 17 00:00:00 2001 From: Ale Camara Date: Sun, 13 Nov 2022 19:47:22 +0000 Subject: [PATCH] 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. --- editor/plugins/gradient_editor.cpp | 1 + 1 file changed, 1 insertion(+) 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 &p_event) { grabbed = _get_point_from_pos(mb->get_position().x); _show_color_picker(); accept_event(); + return; } // Delete point on right click.