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:
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
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue