diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-12-30 13:17:55 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-01-11 12:09:32 +0300 |
commit | 784c04bcbd33dd1490d8e7acdb3f7c0ed5e1a298 (patch) | |
tree | 9d036c07a529479475a4c2328870be48bd325a85 | |
parent | 50c39ff8fe041153bda41657a694e0b154b8cd65 (diff) |
Fix T93163: GPencil scale thickness fails in negative scales
Before the negative scales produced a thickness invalid. Now, the value is used in absolute value to avoid this situation.
-rw-r--r-- | source/blender/editors/transform/transform_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_mode.c b/source/blender/editors/transform/transform_mode.c index 5e0abbc1a08..dc1fa036512 100644 --- a/source/blender/editors/transform/transform_mode.c +++ b/source/blender/editors/transform/transform_mode.c @@ -1045,7 +1045,7 @@ void ElementResize(const TransInfo *t, applyNumInput(&num_evil, values_final_evil); float ratio = values_final_evil[0]; - *td->val = td->ival * ratio * gps->runtime.multi_frame_falloff; + *td->val = td->ival * fabs(ratio) * gps->runtime.multi_frame_falloff; CLAMP_MIN(*td->val, 0.001f); } } |