diff options
author | Antonioya <blendergit@gmail.com> | 2018-12-13 14:41:29 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-12-13 14:41:46 +0300 |
commit | a4afbe11532751a4a4c819b133026222c768d429 (patch) | |
tree | bd9d1a2a5777bd525cea8e7e915ade5990a0248a /source/blender/draw | |
parent | 1616c7c538b4ba151f73c4d60b268f269b7a4021 (diff) |
GP: Cleanup const variables
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c index 1afb5daa912..c75445f3ae5 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c @@ -452,7 +452,7 @@ void DRW_gpencil_get_edit_geom(struct GpencilBatchCacheElem *be, bGPDstroke *gps const DRWContextState *draw_ctx = DRW_context_state_get(); Object *ob = draw_ctx->obact; bGPdata *gpd = ob->data; - bool is_weight_paint = (gpd) && (gpd->flag & GP_DATA_STROKE_WEIGHTMODE); + const bool is_weight_paint = (gpd) && (gpd->flag & GP_DATA_STROKE_WEIGHTMODE); int vgindex = ob->actdef - 1; if (!BLI_findlink(&ob->defbase, vgindex)) { @@ -550,7 +550,7 @@ void DRW_gpencil_get_edlin_geom(struct GpencilBatchCacheElem *be, bGPDstroke *gp const DRWContextState *draw_ctx = DRW_context_state_get(); Object *ob = draw_ctx->obact; bGPdata *gpd = ob->data; - bool is_weight_paint = (gpd) && (gpd->flag & GP_DATA_STROKE_WEIGHTMODE); + const bool is_weight_paint = (gpd) && (gpd->flag & GP_DATA_STROKE_WEIGHTMODE); int vgindex = ob->actdef - 1; if (!BLI_findlink(&ob->defbase, vgindex)) { |