diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-04-20 08:25:00 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-04-20 08:27:59 +0300 |
commit | dbb2b29beab46a81c1ea95521a2afe39145717c5 (patch) | |
tree | ffbda1a7f547d5616eb5f95ae95b81c385be9b92 /source/blender/blenkernel/intern | |
parent | a0e1b6573ad742cb77c47780b78d6a26fa206c73 (diff) |
Action Stashing: Newly stashed strips now get "sync length" option enabled by default
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/nla.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c index 650efea2e96..1ad6446eb05 100644 --- a/source/blender/blenkernel/intern/nla.c +++ b/source/blender/blenkernel/intern/nla.c @@ -1649,6 +1649,12 @@ bool BKE_nla_action_stash(AnimData *adt) nlt->flag = (NLATRACK_MUTED | NLATRACK_PROTECTED); strip->flag &= ~(NLASTRIP_FLAG_SELECT | NLASTRIP_FLAG_ACTIVE); + /* also mark the strip for auto syncing the length, so that the strips accurately + * reflect the length of the action + * XXX: we could do with some extra flags here to prevent repeats/scaling options from working! + */ + strip->flag |= NLASTRIP_FLAG_SYNC_LENGTH; + /* succeeded */ return true; } |