Fix T103293: GPencil Multiframe Scale affects stroke thickness inversely

The problem was the falloff factor was applied directly
and in the thickness must be inversed. Now the thickess
is calculated using an interpolation.
This commit is contained in:
Antonio Vazquez 2022-12-17 16:35:54 +01:00
parent 28511ac6cf
commit 8709a51fa9
Notes: blender-bot 2023-02-13 13:52:57 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
Referenced by issue #103293, Grease Pencil Multiframe Scale affects stroke thickness inversely
Referenced by issue #102967, 3.4: Potential candidates for corrective releases
1 changed files with 3 additions and 2 deletions

View File

@ -1029,8 +1029,9 @@ void ElementResize(const TransInfo *t,
applyNumInput(&num_evil, values_final_evil);
float ratio = values_final_evil[0];
*td->val = td->ival * fabs(ratio) * gps->runtime.multi_frame_falloff;
CLAMP_MIN(*td->val, 0.001f);
float transformed_value = td->ival * fabs(ratio);
*td->val = max_ff(interpf(transformed_value, td->ival, gps->runtime.multi_frame_falloff),
0.001f);
}
}
else {