Added some TODO remarks.

This commit is contained in:
Jeroen Bakker 2021-08-04 16:05:49 +02:00
parent c1730ed165
commit 2af789d1f3
2 changed files with 2 additions and 0 deletions

View File

@ -522,6 +522,7 @@ static bool find_prev_next_keyframes(struct bContext *C, int *r_nextfra, int *r_
mask_to_keylist(&ads, masklay, keylist);
}
/* TODO(jbakker): Keylists are ordered, no need to do any searching at all. */
/* find matching keyframe in the right direction */
do {
aknext = ED_keylist_find_next(keylist, cfranext);

View File

@ -234,6 +234,7 @@ static void motionpath_get_global_framerange(ListBase *targets, int *r_sfra, int
}
}
/* TODO(jbakker): Remove complexity, keylists are ordered. */
static int motionpath_get_prev_keyframe(MPathTarget *mpt,
struct AnimKeylist *keylist,
int current_frame)