diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-21 08:22:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-21 08:23:15 +0300 |
commit | 1f67db75f174fa75ea161bf328f2f36f3b20712f (patch) | |
tree | 0aa3010ffe267d10fed02b97c1f01bef5e010533 /source/blender/draw | |
parent | 769b979abb1ed3876afcadc28953cdc1d7c8f516 (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/draw')
3 files changed, 10 insertions, 9 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_cache_utils.c b/source/blender/draw/engines/gpencil/gpencil_cache_utils.c index dec14b30e59..30887e3fb19 100644 --- a/source/blender/draw/engines/gpencil/gpencil_cache_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_cache_utils.c @@ -89,8 +89,8 @@ static int gpencil_len_datablock_duplicated( for (int i = 0; i < gp_cache_used; i++) { tGPencilObjectCache *cache_elem = &cache_array[i]; if ((cache_elem->ob != ob) && - (cache_elem->gpd == gpd) && - (!cache_elem->is_dup_ob)) + (cache_elem->gpd == gpd) && + (!cache_elem->is_dup_ob)) { tot++; } @@ -134,9 +134,10 @@ tGPencilObjectCache *gpencil_object_cache_add( cache_elem->idx = *gp_cache_used; /* check if object is duplicated */ - cache_elem->is_dup_ob = gpencil_check_ob_duplicated(cache_array, - *gp_cache_used, ob_orig, - &cache_elem->data_idx); + cache_elem->is_dup_ob = gpencil_check_ob_duplicated( + cache_array, + *gp_cache_used, ob_orig, + &cache_elem->data_idx); if (!cache_elem->is_dup_ob) { /* check if object reuse datablock */ diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 28802130df7..f03947ddf87 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -1281,7 +1281,7 @@ void DRW_gpencil_populate_datablock( /* if pose mode, maybe the overlay to fade geometry is enabled */ if ((draw_ctx->obact) && (draw_ctx->object_mode == OB_MODE_POSE) && - (v3d->overlay.flag & V3D_OVERLAY_BONE_SELECT)) + (v3d->overlay.flag & V3D_OVERLAY_BONE_SELECT)) { opacity = gpl->opacity * v3d->overlay.bone_select_alpha; } @@ -1292,7 +1292,7 @@ void DRW_gpencil_populate_datablock( /* create derived array data or expand */ if (cache_ob->data_idx + 1 > gpl->runtime.len_derived) { if ((gpl->runtime.len_derived == 0) || - (gpl->runtime.derived_array == NULL)) + (gpl->runtime.derived_array == NULL)) { p = MEM_callocN(sizeof(struct bGPDframe), "bGPDframe array"); gpl->runtime.len_derived = 1; @@ -1321,7 +1321,7 @@ void DRW_gpencil_populate_datablock( /* draw onion skins */ if (!ID_IS_LINKED(&gpd->id)) { if ((!cache_ob->is_dup_data) && - (gpd->flag & GP_DATA_SHOW_ONIONSKINS) && + (gpd->flag & GP_DATA_SHOW_ONIONSKINS) && (do_onion) && (gpl->onion_flag & GP_LAYER_ONIONSKIN) && ((!playing) || (gpd->onion_flag & GP_ONION_GHOST_ALWAYS)) && (!cache_ob->is_dup_ob) && (gpd->id.us <= 1)) diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c index 71e3c6a22ef..ba64288d147 100644 --- a/source/blender/draw/engines/gpencil/gpencil_engine.c +++ b/source/blender/draw/engines/gpencil/gpencil_engine.c @@ -583,7 +583,7 @@ void GPENCIL_cache_populate(void *vedata, Object *ob) * (only if region is equal to originated paint region) */ if ((draw_ctx->obact == ob) && - ((gpd->runtime.ar == NULL) || (gpd->runtime.ar == draw_ctx->ar))) + ((gpd->runtime.ar == NULL) || (gpd->runtime.ar == draw_ctx->ar))) { DRW_gpencil_populate_buffer_strokes(&e_data, vedata, ts, ob); } |