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>2013-06-09 17:13:47 +0400
committerJoshua Leung <aligorith@gmail.com>2013-06-09 17:13:47 +0400
commit05ffe37df404462d454273777b656ed06e407da3 (patch)
tree02d124c7f47f0235d96b7d65cf6d93b96c83e608 /source/blender/editors/space_nla/nla_channels.c
parent40f21d829da56fe9202641be38190ceb2673ff07 (diff)
NLA Editor: It is now possible to add strips to AnimData blocks with no existing
tracks As a convenience feature for those who are loading in action libraries and using these to quickly block out things in the NLA editor, it is now possible to add strips to AnimData blocks without first manually creating empty tracks to add these strips to. Simply ensure that such empty AnimData blocks are selected (Hint: click on the action line of the affected AnimData block to do so), and try to add a strip normally.
Diffstat (limited to 'source/blender/editors/space_nla/nla_channels.c')
-rw-r--r--source/blender/editors/space_nla/nla_channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_nla/nla_channels.c b/source/blender/editors/space_nla/nla_channels.c
index c3f8642d0a6..ca50ff3b545 100644
--- a/source/blender/editors/space_nla/nla_channels.c
+++ b/source/blender/editors/space_nla/nla_channels.c
@@ -395,7 +395,7 @@ void NLA_OT_channels_click(wmOperatorType *ot)
/* Add NLA Tracks to the same AnimData block as a selected track, or above the selected tracks */
/* helper - add NLA Tracks alongside existing ones */
-static bool nlaedit_add_tracks_existing(bAnimContext *ac, bool above_sel)
+bool nlaedit_add_tracks_existing(bAnimContext *ac, bool above_sel)
{
ListBase anim_data = {NULL, NULL};
bAnimListElem *ale;
@@ -437,7 +437,7 @@ static bool nlaedit_add_tracks_existing(bAnimContext *ac, bool above_sel)
}
/* helper - add NLA Tracks to empty (and selected) AnimData blocks */
-static bool nlaedit_add_tracks_empty(bAnimContext *ac)
+bool nlaedit_add_tracks_empty(bAnimContext *ac)
{
ListBase anim_data = {NULL, NULL};
bAnimListElem *ale;