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:
parent
d2050c7c36
commit
ae5b912f78
Notes:
blender-bot
2023-02-14 02:22:07 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #103293, Grease Pencil Multiframe Scale affects stroke thickness inversely
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue