Blender Git Loki
Git Commits -> Revision 50cbc83
Revision 50cbc83 by Alexander Gavrilov June 20, 2021, 18:30 (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: 50cbc830209cc45c92ef713ea3247692a623bb0d
Parent Commit: eaf8ab0
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)