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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user