Blender Git Commit Log
Git Commits -> Revision 848b47d
Revision 848b47d by Alexander Gavrilov (temp-angavrilov-constraints) June 22, 2021, 13:43 (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: 848b47dab98da8770405686be0a5534729828808
Parent Commit: 7b5849d
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)
/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)