Fix T94409: GPencil smooth stroke thickness operator weird result
The smooth was not working "smoothly" and any change in the factor produced a weird result.
This commit is contained in:
parent
5aac794b11
commit
934db6a820
Notes:
blender-bot
2024-03-22 15:57:27 +01:00
Referenced by issue #94409, Grease pencil, «Smooth stroke» operator. Factor`s influence is weird
|
@ -3956,8 +3956,8 @@ static void gpencil_smooth_stroke(bContext *C, wmOperator *op)
|
|||
}
|
||||
if (smooth_thickness) {
|
||||
/* thickness need to repeat process several times */
|
||||
for (int r2 = 0; r2 < 20; r2++) {
|
||||
BKE_gpencil_stroke_smooth_thickness(gps, i, factor);
|
||||
for (int r2 = 0; r2 < repeat * 2; r2++) {
|
||||
BKE_gpencil_stroke_smooth_thickness(gps, i, 1.0f - factor);
|
||||
}
|
||||
}
|
||||
if (smooth_uv) {
|
||||
|
|
Loading…
Reference in New Issue