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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-08-26 12:20:52 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-08-26 12:27:04 +0300
commit27787549256410b6b2de1eca47a2719830af7f96 (patch)
tree23f3209a056b3d04365096ba7095201f601a6edd /source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c
parentfd52dc58ddea642b7162b01538c0c6c48abb0507 (diff)
Cleanp: fix compiler warnings
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c')
-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 29e933e26df..e9e92f7a1e2 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c
@@ -149,7 +149,7 @@ static void deformStroke(GpencilModifierData *md,
if (mmd->flag & GP_THICK_NORMALIZE) {
if (gps_has_unaffected_points) {
/* Clamp value for very weird situations when stroke thickness can be zero. */
- CLAMP_MIN(gps->thickness, 0.001f);
+ CLAMP_MIN(gps->thickness, 1);
/* Calculate pressure value to match the width of strokes with reset thickness and 1.0
* pressure. */
pt->pressure = (float)mmd->thickness / (float)gps->thickness;