[Bf-blender-cvs] [a4afbe11532] blender2.8: GP: Cleanup const variables
Antonioya
noreply at git.blender.org
Thu Dec 13 12:41:51 CET 2018
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)) {
More information about the Bf-blender-cvs
mailing list