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:
authorAntonioya <blendergit@gmail.com>2018-11-30 00:34:01 +0300
committerAntonioya <blendergit@gmail.com>2018-11-30 00:34:59 +0300
commitc754b2239c065a76386df211daf365da6ed56312 (patch)
treea8d7f32eb1ddbd28ca0f12ba7aa1bed4843e742f /source/blender/editors/gpencil/annotate_draw.c
parent6dbc820633eb06d66bb9cbf6880ec7b37c622cd9 (diff)
Fix T58196: Annotation thickness is 0
When the annotation is created by other tools, the thickness was set to 0
Diffstat (limited to 'source/blender/editors/gpencil/annotate_draw.c')
-rw-r--r--source/blender/editors/gpencil/annotate_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/annotate_draw.c b/source/blender/editors/gpencil/annotate_draw.c
index 345a623a234..1ef7e3883da 100644
--- a/source/blender/editors/gpencil/annotate_draw.c
+++ b/source/blender/editors/gpencil/annotate_draw.c
@@ -803,6 +803,8 @@ static void gp_draw_data_layers(
float ink[4];
for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) {
+ /* verify never thickness is less than 1 */
+ CLAMP_MIN(gpl->thickness, 1.0f);
short lthick = gpl->thickness;
/* apply layer opacity */