Blender Git Commit Log

Git Commits -> Revision 3361319

Revision 3361319 by Alexander Gavrilov
September 17, 2021, 11:05 (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: 3361319d98815585503ce9f2d14b590db37673aa
Parent Commit: 409e90d
Lines Changed: +306, -10

12 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 (+5, -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_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