From 72acce43bc34e5e9569606e08ee536b02cab088b Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Tue, 27 Jul 2021 10:39:52 +0300 Subject: Animation: allow marking actions as cyclic for Cycle-Aware Keying. When a manual frame range is set, allow marking an action as having Cyclic Animation. This does not affect how the action is evaluated, but the Cycle-Aware Keying option will automatically make any newly added F-Curves cyclic. This allows using the option from the start to build the cycle, rather than only for tweaking an existing loop. The curves are made cyclic when they have only one key, either after inserting the first key, or before adding the second one. The latter case avoids the need to manually make the first added curve cyclic after marking a newly added action cyclic. Differential Revision: https://developer.blender.org/D11803 --- source/blender/makesdna/DNA_action_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_action_types.h b/source/blender/makesdna/DNA_action_types.h index 9d1de4c0c36..8e7551e1703 100644 --- a/source/blender/makesdna/DNA_action_types.h +++ b/source/blender/makesdna/DNA_action_types.h @@ -701,6 +701,8 @@ typedef enum eAction_Flags { /* ACT_DISABLED = (1 << 11), */ /* UNUSED */ /** The action has a manually set intended playback frame range. */ ACT_FRAME_RANGE = (1 << 12), + /** The action is intended to be a cycle (requires ACT_FRAME_RANGE). */ + ACT_CYCLIC = (1 << 13), } eAction_Flags; /* ************************************************ */ -- cgit v1.2.3