Cleanup: make format + extra parenthesis

Nested ? : get better formatted with some parenthesis around the expressions.
This commit is contained in:
Dalai Felinto 2022-03-22 11:36:10 +01:00
parent 2ba72d847b
commit 3b745f3455
1 changed files with 2 additions and 2 deletions

View File

@ -269,8 +269,8 @@ GPENCIL_tLayer *gpencil_layer_cache_add(GPENCIL_PrivateData *pd,
float vert_col_opacity = (override_vertcol) ?
(is_vert_col_mode ? pd->vertex_paint_opacity : 0.0f) :
pd->is_render ? gpl->vertex_paint_opacity :
pd->vertex_paint_opacity;
(pd->is_render ? gpl->vertex_paint_opacity :
pd->vertex_paint_opacity);
/* Negate thickness sign to tag that strokes are in screen space.
* Convert to world units (by default, 1 meter = 2000 pixels). */
float thickness_scale = (is_screenspace) ? -1.0f : (gpd->pixfactor / GPENCIL_PIXEL_FACTOR);