GPv3: Length modifier end property not working

When `random_(end/start)_factor` is non-zero, the `end segment` property
won't have any effect on the curves end. This is accidently controlled by `start_fac`.

Resolves #119059

Pull Request: https://projects.blender.org/blender/blender/pulls/119074
This commit is contained in:
Pratik Borhade
2024-03-05 11:51:29 +01:00
committed by Falk David
parent 3f43f83b8a
commit 690679e3ce

View File

@@ -132,7 +132,7 @@ static void deform_drawing(const ModifierData &md,
Array<float> modified_ends;
if (mmd.rand_start_fac != 0.0 || mmd.rand_end_fac != 0.0) {
modified_starts = Array<float>(curves.curves_num(), mmd.start_fac);
modified_ends = Array<float>(curves.curves_num(), mmd.start_fac);
modified_ends = Array<float>(curves.curves_num(), mmd.end_fac);
/* Use random to modify start/end factors. Put the modified values outside the
* branch so it could be accessed in later stretching/shrinking stages. */