Blender Git Commit Log

Git Commits -> Revision 7daa2b5

Revision 7daa2b5 by Alexander Gavrilov
May 11, 2021, 15:57 (GMT)
Animation: allow specifying a custom frame range for actions.

Some operations, e.g. adding a new action strip to NLA, require
knowing the active frame range of an action, but currently it can
only be deduced by scanning the keyframes of the curves within it.
This is not ideal if e.g. curves are staggered for overlap.

As suggested by Nathan Vegdahl, this patch adds Action properties
that allow manually specifying its active frame range, and whether
it is intended to be cyclic. The settings are exposed in a popover
in Action Editor. When enabled, the range is highlighted in the
background using a striped fill to distinguish it from the solid
filled regular playback range.

When set, the frame range is used by NLA. In addition, the Cycle-Aware
Keying option automatically sets up F-Curves newly added to a cyclic
action to use cyclic extrapolation with the correct period.

Commit Details:

Full Hash: 7daa2b524541be24d003c7a0c6ed5669622db807
Parent Commit: 925ff8a
Lines Changed: +275, -8

13 Modified Paths:

/release/scripts/startup/bl_ui/space_dopesheet.py (+34, -0) (Diff)
/source/blender/blenkernel/BKE_action.h (+6, -0) (Diff)
/source/blender/blenkernel/intern/action.c (+22, -0) (Diff)
/source/blender/blenkernel/intern/nla.c (+6, -2) (Diff)
/source/blender/editors/animation/anim_draw.c (+49, -0) (Diff)
/source/blender/editors/animation/keyframing.c (+49, -2) (Diff)
/source/blender/editors/include/ED_anim_api.h (+4, -1) (Diff)
/source/blender/editors/space_action/action_data.c (+1, -1) (Diff)
/source/blender/editors/space_action/space_action.c (+16, -0) (Diff)
/source/blender/editors/space_nla/nla_edit.c (+12, -1) (Diff)
/source/blender/makesdna/DNA_action_types.h (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_action.c (+67, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+2, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021