[Bf-blender-cvs] [cacfdcd0410] soc-2021-uv-editor-improvements: Added some TODO remarks.
Jeroen Bakker
noreply at git.blender.org
Mon Aug 9 03:24:40 CEST 2021
Commit: cacfdcd0410d34189d850a453b599e2e786997b8
Author: Jeroen Bakker
Date: Wed Aug 4 16:05:49 2021 +0200
Branches: soc-2021-uv-editor-improvements
https://developer.blender.org/rBcacfdcd0410d34189d850a453b599e2e786997b8
Added some TODO remarks.
===================================================================
M source/blender/editors/animation/anim_draw.c
M source/blender/editors/animation/anim_motion_paths.c
===================================================================
diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c
index 6469c47ab11..735f3b86924 100644
--- a/source/blender/editors/animation/anim_draw.c
+++ b/source/blender/editors/animation/anim_draw.c
@@ -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);
diff --git a/source/blender/editors/animation/anim_motion_paths.c b/source/blender/editors/animation/anim_motion_paths.c
index 2a3ae35aab0..d976f5f72ad 100644
--- a/source/blender/editors/animation/anim_motion_paths.c
+++ b/source/blender/editors/animation/anim_motion_paths.c
@@ -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)
More information about the Bf-blender-cvs
mailing list