Blender Git Commit Log

Git Commits -> Revision 5d59b38

Revision 5d59b38 by Alexander Gavrilov (master)
November 24, 2021, 12:58 (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: 5d59b38605d61b2aeabfa1cb572b5a0d9158424b
Parent Commit: 057cb7e
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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021