diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-04-13 11:51:04 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-04-13 11:51:04 +0300 |
commit | 4fb33d82e251e340d4ffee8efda62cfeb5c03135 (patch) | |
tree | aded54b6f0035ac6d26b5dbcd51102fd0085c5dd /source/blender/modifiers | |
parent | f684dfc43216a3e9286202bd07b05064bb37f9ee (diff) |
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.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |