Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-05-11 14:55:21 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-05-11 14:55:21 +0300
commit3d3a75fc2a6b105cd4ccc758e7da026dcf6daf43 (patch)
tree5683b06770df898bb1409459a5ac08030a76de40 /source/blender/gpencil_modifiers
parent668867558e68b064c507b1f23508b65b0343f0f1 (diff)
Fix T76598: GPencil - Set a lower limit for Thickness modifier
The old value was too high. Now, the limit of pressure is 0, but anyway, the stroke will be always visible because there is a minimum thickness of 1 pixel.
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c
index 0c5f47eb9d4..4d985652a1e 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c
@@ -139,7 +139,7 @@ static void deformStroke(GpencilModifierData *md,
pt->pressure = interpf(target, pt->pressure, weight);
- CLAMP_MIN(pt->pressure, 0.1f);
+ CLAMP_MIN(pt->pressure, 0.0f);
}
}