Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2015-04-20 08:25:00 +0300
committerJoshua Leung <aligorith@gmail.com>2015-04-20 08:27:59 +0300
commitdbb2b29beab46a81c1ea95521a2afe39145717c5 (patch)
treeffbda1a7f547d5616eb5f95ae95b81c385be9b92 /source/blender/blenkernel/intern
parenta0e1b6573ad742cb77c47780b78d6a26fa206c73 (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.c6
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;
}