Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-06-07 17:07:32 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-06-07 17:08:04 +0300
commitfd556023cbadba1d6a8fb15f324257b728b5322b (patch)
tree32921ef07dd6dcbfbd3fd1bc713f072bd03b7bc4 /source/blender/editors/gpencil/gpencil_armature.c
parentbf417d640b2fd19417ebdc8343adfec1a4813df7 (diff)
Cleanup: Reformat GPencil multiedit frame selection
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_armature.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_armature.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/gpencil/gpencil_armature.c b/source/blender/editors/gpencil/gpencil_armature.c
index 6ad89d2e38d..068a77b769c 100644
--- a/source/blender/editors/gpencil/gpencil_armature.c
+++ b/source/blender/editors/gpencil/gpencil_armature.c
@@ -357,13 +357,9 @@ static void gpencil_add_verts_to_dgroups(
/* loop all strokes */
for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) {
- bGPDframe *init_gpf = gpl->actframe;
+ bGPDframe *init_gpf = (is_multiedit) ? gpl->frames.first : gpl->actframe;
bGPDspoint *pt = NULL;
- if (is_multiedit) {
- init_gpf = gpl->frames.first;
- }
-
for (bGPDframe *gpf = init_gpf; gpf; gpf = gpf->next) {
if ((gpf == gpl->actframe) || ((gpf->flag & GP_FRAME_SELECT) && (is_multiedit))) {