From 7a4d2fe523694c7f737c26502fc1e5532406f2c6 Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Wed, 30 Oct 2024 05:37:30 -0500 Subject: [PATCH] Fix range check in get_hooks_for_clip_schedule so that proper keyframes get assigned to corresponding ranges --- comfy/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/hooks.py b/comfy/hooks.py index 85dcd9281..ac2fdbbae 100644 --- a/comfy/hooks.py +++ b/comfy/hooks.py @@ -321,7 +321,7 @@ class HookGroup: # check if is a keyframe that works for the current t_range for stored_range, stored_kf in val: # if stored start is less than current end, then fits - give it assigned keyframe - if stored_range[0] < t_range[1]: + if stored_range[0] < t_range[1] and stored_range[1] > t_range[0]: keyframe = stored_kf break hooks_schedule.append((hook, keyframe))