[Bf-blender-cvs] [6e65cd86c3d] master: Cleanup: Remove unused variable and move definition
Antonio Vazquez
noreply at git.blender.org
Fri Jun 7 11:51:18 CEST 2019
Commit: 6e65cd86c3d8476051ef8f0ab53b2d639311e192
Author: Antonio Vazquez
Date: Fri Jun 7 11:51:10 2019 +0200
Branches: master
https://developer.blender.org/rB6e65cd86c3d8476051ef8f0ab53b2d639311e192
Cleanup: Remove unused variable and move definition
===================================================================
M source/blender/editors/gpencil/gpencil_data.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index afddfc27a08..b2f636122c3 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -1272,8 +1272,6 @@ static int gp_stroke_arrange_exec(bContext *C, wmOperator *op)
Object *ob = CTX_data_active_object(C);
bGPdata *gpd = ED_gpencil_data_get_active(C);
bGPDlayer *gpl = BKE_gpencil_layer_getactive(gpd);
- bGPDstroke *gps;
- const bool is_multiedit = (bool)GPENCIL_MULTIEDIT_SESSIONS_ON(gpd);
/* sanity checks */
if (ELEM(NULL, gpd, gpl, gpl->actframe)) {
@@ -1281,6 +1279,7 @@ static int gp_stroke_arrange_exec(bContext *C, wmOperator *op)
}
const int direction = RNA_enum_get(op->ptr, "direction");
+ const bool is_multiedit = (bool)GPENCIL_MULTIEDIT_SESSIONS_ON(gpd);
CTX_DATA_BEGIN (C, bGPDlayer *, gpl, editable_gpencil_layers) {
/* temp listbase to store selected strokes */
More information about the Bf-blender-cvs
mailing list