GP: Fix infinite loop in Dope Sheet

This commit is contained in:
Antonio Vazquez 2018-09-27 11:11:33 +02:00
parent c67305f21b
commit 358d8c14d8
Notes: blender-bot 2023-02-14 09:43:37 +01:00
Referenced by issue #55622, Proportional editing in Gpencil dope sheet will move all keyframes (e.g even when Proportional size is 0.0)
1 changed files with 1 additions and 1 deletions

View File

@ -4181,7 +4181,7 @@ static void createTransActionData(bContext *C, TransInfo *t)
else {
bGPDframe *gpf_iter;
int min = INT_MAX;
for (gpf_iter = gpl->frames.first; gpf_iter; gpf_iter = gpf->next) {
for (gpf_iter = gpl->frames.first; gpf_iter; gpf_iter = gpf_iter->next) {
if (gpf_iter->flag & GP_FRAME_SELECT) {
if (FrameOnMouseSide(t->frame_side, (float)gpf_iter->framenum, cfra)) {
int val = abs(gpf->framenum - gpf_iter->framenum);