From d18fe0c575a84dcdb16eedfdde8c9ee1d8ae1ddd Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 7 Mar 2025 08:35:17 +0100 Subject: [PATCH] Fix #135523: Calculate Motion Paths ignores Selected Keys option Since the switch to slotted actions, we cannot solely rely on the Listbase of `curves` (this is for legacy actions only), but need to consider Channelbag for new slotted actions. There is `assigned_action_has_keyframes` that handles both of these and would also early out if we have no keyframes to process, so use it. Pull Request: https://projects.blender.org/blender/blender/pulls/135566 --- source/blender/editors/animation/anim_motion_paths.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/animation/anim_motion_paths.cc b/source/blender/editors/animation/anim_motion_paths.cc index 03ebeeede66..ee11f3ef46a 100644 --- a/source/blender/editors/animation/anim_motion_paths.cc +++ b/source/blender/editors/animation/anim_motion_paths.cc @@ -364,7 +364,7 @@ void animviz_motionpath_compute_range(Object *ob, Scene *scene) const bool has_action = ob->adt && ob->adt->action; if (avs->path_range == MOTIONPATH_RANGE_SCENE || !has_action || - BLI_listbase_is_empty(&ob->adt->action->curves)) + !blender::animrig::legacy::assigned_action_has_keyframes(ob->adt)) { /* Default to the scene (preview) range if there is no animation data to * find selected keys in. */