Fix T58196: Annotation thickness is 0

When the annotation is created by other tools, the thickness was set to 0
This commit is contained in:
Antonio Vazquez 2018-11-29 22:34:01 +01:00
parent 6dbc820633
commit c754b2239c
Notes: blender-bot 2023-02-14 04:54:20 +01:00
Referenced by issue #58196, Annotation tool placed on view with thickness 0 is invisible
1 changed files with 2 additions and 0 deletions

View File

@ -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 */