Fix: Deleting GPencil keyframes in DopeSheet didn't redraw the view

This commit is contained in:
Joshua Leung 2017-09-03 12:46:01 +12:00
parent 4f6196a041
commit b227a3388d
1 changed files with 4 additions and 2 deletions

View File

@ -252,8 +252,10 @@ bool ED_gplayer_frames_delete(bGPDlayer *gpl)
for (gpf = gpl->frames.first; gpf; gpf = gpfn) {
gpfn = gpf->next;
if (gpf->flag & GP_FRAME_SELECT)
changed |= BKE_gpencil_layer_delframe(gpl, gpf);
if (gpf->flag & GP_FRAME_SELECT) {
BKE_gpencil_layer_delframe(gpl, gpf);
changed = true;
}
}
return changed;