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>2009-05-25 17:07:54 +0400
committerJoshua Leung <aligorith@gmail.com>2009-05-25 17:07:54 +0400
commit801eeb6423f4fcd3f2b2fac73cc5e65c96654c5b (patch)
tree183ec79edc14c1753d15f1a07d46d9636397e1f3 /source/blender/editors/space_nla/space_nla.c
parentd141aff097d17c106071f2ad966fdd97a1fb5ba4 (diff)
NLA SoC: Groundwork for NLA UI
Adapted the channel-filtering code for the other animation editors for eventual use by the NLA Editor.
Diffstat (limited to 'source/blender/editors/space_nla/space_nla.c')
-rw-r--r--source/blender/editors/space_nla/space_nla.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/editors/space_nla/space_nla.c b/source/blender/editors/space_nla/space_nla.c
index 188315c73fb..cdaabe9e9de 100644
--- a/source/blender/editors/space_nla/space_nla.c
+++ b/source/blender/editors/space_nla/space_nla.c
@@ -72,6 +72,9 @@ static SpaceLink *nla_new(const bContext *C)
snla= MEM_callocN(sizeof(SpaceNla), "initnla");
snla->spacetype= SPACE_NLA;
+ /* allocate DopeSheet data for NLA Editor */
+ snla->ads= MEM_callocN(sizeof(bDopeSheet), "NLAEdit DopeSheet");
+
/* header */
ar= MEM_callocN(sizeof(ARegion), "header for nla");
@@ -123,8 +126,12 @@ static SpaceLink *nla_new(const bContext *C)
/* not spacelink itself */
static void nla_free(SpaceLink *sl)
{
-// SpaceNla *snla= (SpaceNla*) sl;
+ SpaceNla *snla= (SpaceNla*) sl;
+ if (snla->ads) {
+ BLI_freelistN(&snla->ads->chanbase);
+ MEM_freeN(snla->ads);
+ }
}