Commit: a4afbe11532751a4a4c819b133026222c768d429
Author: Antonioya
Date:   Thu Dec 13 12:41:29 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBa4afbe11532751a4a4c819b133026222c768d429

GP: Cleanup const variables

===================================================================

M       source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c

===================================================================

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)) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to