Blender Git Loki
Git Commits -> Revision 7023600
Revision 7023600 by Alexander Gavrilov November 19, 2021, 16:46 (GMT) |
Animation: allow manually setting the intended playback range for actions. Some operations, e.g. adding a new action strip to NLA, require knowing the active frame range of an action. However, 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 in comments to T54724, this patch adds Action properties that allow manually specifying its active frame range. The settings are exposed via a panel in the Dopesheet and 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 when adding or updating NLA tracks, and by add-ons using `Action.frame_range`, e.g. FBX exporter. Differential Revision: https://developer.blender.org/D11803 |
Commit Details:
Full Hash: 7023600ecb9d3dc3230a45585b9db9933fefbdaf
Parent Commit: 7f708da
Lines Changed: +341, -12
14 Modified Paths:
/release/scripts/startup/bl_ui/space_dopesheet.py (+32, -0) (Diff)
/release/scripts/startup/bl_ui/space_nla.py (+17, -0) (Diff)
/source/blender/blenkernel/BKE_action.h (+4, -0) (Diff)
/source/blender/blenkernel/intern/action.c (+18, -0) (Diff)
/source/blender/blenkernel/intern/nla.c (+7, -2) (Diff)
/source/blender/editors/animation/anim_draw.c (+68, -0) (Diff)
/source/blender/editors/include/ED_anim_api.h (+6, -1) (Diff)
/source/blender/editors/space_action/action_data.c (+1, -1) (Diff)
/source/blender/editors/space_action/action_draw.c (+55, -0) (Diff)
/source/blender/editors/space_action/space_action.c (+9, -0) (Diff)
/source/blender/editors/space_nla/nla_draw.c (+7, -2) (Diff)
/source/blender/editors/space_nla/nla_edit.c (+12, -1) (Diff)
/source/blender/makesdna/DNA_action_types.h (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_action.c (+99, -5) (Diff)
/release/scripts/startup/bl_ui/space_nla.py (+17, -0) (Diff)
/source/blender/blenkernel/BKE_action.h (+4, -0) (Diff)
/source/blender/blenkernel/intern/action.c (+18, -0) (Diff)
/source/blender/blenkernel/intern/nla.c (+7, -2) (Diff)
/source/blender/editors/animation/anim_draw.c (+68, -0) (Diff)
/source/blender/editors/include/ED_anim_api.h (+6, -1) (Diff)
/source/blender/editors/space_action/action_data.c (+1, -1) (Diff)
/source/blender/editors/space_action/action_draw.c (+55, -0) (Diff)
/source/blender/editors/space_action/space_action.c (+9, -0) (Diff)
/source/blender/editors/space_nla/nla_draw.c (+7, -2) (Diff)
/source/blender/editors/space_nla/nla_edit.c (+12, -1) (Diff)
/source/blender/makesdna/DNA_action_types.h (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_action.c (+99, -5) (Diff)