[Bf-blender-cvs] [3b745f3455c] master: Cleanup: make format + extra parenthesis
Dalai Felinto
noreply at git.blender.org
Tue Mar 22 11:36:16 CET 2022
Commit: 3b745f3455c30f73a26f6c67f52f6a148bf98ca7
Author: Dalai Felinto
Date: Tue Mar 22 11:36:10 2022 +0100
Branches: master
https://developer.blender.org/rB3b745f3455c30f73a26f6c67f52f6a148bf98ca7
Cleanup: make format + extra parenthesis
Nested ? : get better formatted with some parenthesis around the expressions.
===================================================================
M source/blender/draw/engines/gpencil/gpencil_cache_utils.c
===================================================================
diff --git a/source/blender/draw/engines/gpencil/gpencil_cache_utils.c b/source/blender/draw/engines/gpencil/gpencil_cache_utils.c
index 7bfbcfa9e21..be35660a4d7 100644
--- a/source/blender/draw/engines/gpencil/gpencil_cache_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_cache_utils.c
@@ -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);
More information about the Bf-blender-cvs
mailing list