GP: Cleanup const variables
authorAntonioya <blendergit@gmail.com>
Thu, 13 Dec 2018 11:41:29 +0000 (12:41 +0100)
committerAntonioya <blendergit@gmail.com>
Thu, 13 Dec 2018 11:41:46 +0000 (12:41 +0100)
source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c

index 1afb5daa912be840f55856131f58532d6b421a22..c75445f3ae535c50de8655615123a3f80d6bbe07 100644 (file)
@@ -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)) {