From fd556023cbadba1d6a8fb15f324257b728b5322b Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 7 Jun 2019 16:07:32 +0200 Subject: Cleanup: Reformat GPencil multiedit frame selection --- source/blender/editors/gpencil/gpencil_intern.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/blender/editors/gpencil/gpencil_intern.h') diff --git a/source/blender/editors/gpencil/gpencil_intern.h b/source/blender/editors/gpencil/gpencil_intern.h index c8d2547ad51..df9cb2e9a01 100644 --- a/source/blender/editors/gpencil/gpencil_intern.h +++ b/source/blender/editors/gpencil/gpencil_intern.h @@ -603,10 +603,7 @@ struct GP_EditableStrokes_Iter { bGPdata *gpd_ = CTX_data_gpencil_data(C); \ const bool is_multiedit_ = (bool)GPENCIL_MULTIEDIT_SESSIONS_ON(gpd_); \ CTX_DATA_BEGIN (C, bGPDlayer *, gpl, editable_gpencil_layers) { \ - bGPDframe *init_gpf_ = gpl->actframe; \ - if (is_multiedit_) { \ - init_gpf_ = gpl->frames.first; \ - } \ + bGPDframe *init_gpf_ = (is_multiedit_) ? gpl->frames.first : gpl->actframe; \ for (bGPDframe *gpf_ = init_gpf_; gpf_; gpf_ = gpf_->next) { \ if ((gpf_ == gpl->actframe) || ((gpf_->flag & GP_FRAME_SELECT) && is_multiedit_)) { \ ED_gpencil_parent_location(depsgraph_, obact_, gpd_, gpl, gpstroke_iter.diff_mat); \ -- cgit v1.2.3