Blender Git Commit Log
Git Commits -> Revision f3f87db
Revision f3f87db by Alexander Gavrilov October 21, 2021, 16:27 (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: f3f87db425e5fd4d5d199de1baa59639ef2d84ad
Parent Commit: 22a0e96
Lines Changed: +314, -12
13 Modified Paths:
/release/scripts/startup/bl_ui/space_dopesheet.py (+27, -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 (+2, -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)
/source/blender/blenkernel/BKE_action.h (+4, -0) (Diff)
/source/blender/blenkernel/intern/action.c (+18, -0) (Diff)
/source/blender/blenkernel/intern/nla.c (+2, -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)