[Bf-blender-cvs] [d5deb59d3b4] greasepencil-refactor: GPencil: Cleanup - Add parentesis
Antonio Vazquez
noreply at git.blender.org
Wed Jan 22 16:48:16 CET 2020
Commit: d5deb59d3b4a6a6d27909c7c48532a36e7ed599b
Author: Antonio Vazquez
Date: Wed Jan 22 16:47:48 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rBd5deb59d3b4a6a6d27909c7c48532a36e7ed599b
GPencil: Cleanup - Add parentesis
===================================================================
M source/blender/draw/engines/gpencil/gpencil_engine.c
===================================================================
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 07c691871d4..443cc5346e8 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -452,15 +452,15 @@ static void gp_layer_cache_populate(bGPDlayer *gpl,
* Convert to world units (by default, 1 meter = 2000 px). */
float thickness_scale = (is_screenspace) ? -1.0f : (gpd->pixfactor / GPENCIL_PIXEL_FACTOR);
- const bool use_lights = iter->pd->use_lighting && ((gpl->flag & GP_LAYER_USE_LIGHTS) != 0) &&
- (iter->ob->dtx & OB_USE_GPENCIL_LIGHTS);
+ const bool use_lights = ((iter->pd->use_lighting) && ((gpl->flag & GP_LAYER_USE_LIGHTS) != 0) &&
+ (iter->ob->dtx & OB_USE_GPENCIL_LIGHTS));
iter->ubo_lights = (use_lights) ? iter->pd->global_light_pool->ubo :
iter->pd->shadeless_light_pool->ubo;
const bool is_in_front = (iter->ob->dtx & OB_DRAWXRAY);
bool overide_vertcol = (iter->pd->v3d_color_type != -1);
- bool is_vert_col_mode = (iter->pd->v3d_color_type == V3D_SHADING_VERTEX_COLOR) ||
- GPENCIL_VERTEX_MODE(gpd);
+ bool is_vert_col_mode = ((iter->pd->v3d_color_type == V3D_SHADING_VERTEX_COLOR) ||
+ GPENCIL_VERTEX_MODE(gpd));
float vert_col_opacity = (overide_vertcol) ? (is_vert_col_mode ? 1.0f : 0.0f) :
gpl->vertex_paint_opacity;
More information about the Bf-blender-cvs
mailing list