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.
This commit is contained in:
Bastien Montagne 2015-04-13 10:51:04 +02:00
parent f684dfc432
commit 4fb33d82e2
Notes: blender-bot 2023-02-14 09:15:30 +01:00
Referenced by issue #44361, array modifier "fit curve" mode not working properly
1 changed files with 1 additions and 1 deletions

View File

@ -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 */