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:
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
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue