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. */