From 4fb33d82e251e340d4ffee8efda62cfeb5c03135 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 13 Apr 2015 10:51:04 +0200 Subject: Fix T44361: array modifier "fit curve" mode not working properly 'tot_length / step_length' gives the number of 'segments', not the number of copies - we have to add 1 here. --- source/blender/modifiers/intern/MOD_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/modifiers/intern/MOD_array.c b/source/blender/modifiers/intern/MOD_array.c index 409d862addb..8ebee0dc1b4 100644 --- a/source/blender/modifiers/intern/MOD_array.c +++ b/source/blender/modifiers/intern/MOD_array.c @@ -501,7 +501,7 @@ static DerivedMesh *arrayModifier_doArray( if (dist > eps) { /* this gives length = first copy start to last copy end * add a tiny offset for floating point rounding errors */ - count = (length + eps) / dist; + count = (length + eps) / dist + 1; } else { /* if the offset has no translation, just make one copy */ -- cgit v1.2.3