diff options
author | Daniel J. Ramirez <djrmuv@gmail.com> | 2017-07-27 16:39:53 -0500 |
---|---|---|
committer | Daniel J. Ramirez <djrmuv@gmail.com> | 2017-07-27 16:39:53 -0500 |
commit | 707bb96fa808476bf2cfe36f9382d7b5b2589881 (patch) | |
tree | 19a01aa5a3dcb12feaadb70c5fd6288af52326df /scene | |
parent | 2b99bd492b36ee75406f15e10e63acc6a70e650a (diff) |
Do not allow multiple data connections to the same data input slot, fixes #6357.Improved curve rendering when nodes are close.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/graph_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |