Commit: c754b2239c065a76386df211daf365da6ed56312
Author: Antonioya
Date: Thu Nov 29 22:34:01 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBc754b2239c065a76386df211daf365da6ed56312
Fix T58196: Annotation thickness is 0
When the annotation is created by other tools, the thickness was set to 0
===================================================================
M source/blender/editors/gpencil/annotate_draw.c
===================================================================
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 */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs