瀏覽代碼

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.

Ale Camara 2 年之前
父節點
當前提交
aebf3d9401
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/plugins/gradient_editor.cpp

+ 1 - 0
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.