From 707bb96fa808476bf2cfe36f9382d7b5b2589881 Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Thu, 27 Jul 2017 16:39:53 -0500 Subject: Do not allow multiple data connections to the same data input slot, fixes #6357.Improved curve rendering when nodes are close. --- scene/gui/graph_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene') diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index 1d37529a87..11f750ea70 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -601,7 +601,7 @@ void GraphEdit::_draw_cos_line(CanvasItem *p_where, const Vector2 &p_from, const int cp_neg_len = get_constant("bezier_len_neg"); if (diff > 0) { - cp_offset = MAX(cp_len, diff * 0.5); + cp_offset = MIN(cp_len, diff * 0.5); } else { cp_offset = MAX(MIN(cp_len - diff, cp_neg_len), -diff * 0.5); } -- cgit v1.2.3