diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-06-01 14:38:17 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-06-01 14:38:17 +0400 |
commit | 84ec2711ace386284b7305ef345051d7572a8678 (patch) | |
tree | b54636d8bab544bd4357d3ca2cb2d78aa62bdd18 /source/blender/src | |
parent | 16f49532300630e3015a28c7f4b6874cb61ddb8c (diff) |
== NLA Editor ==
When adding a new Action Strip to an Object which didn't have any Action Strips previously, NLA-override mode is turned on by default for that object (the Action/NLA-icon beside the expand/collapse triangle).
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/editnla.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/editnla.c b/source/blender/src/editnla.c index d204fa2b703..73eea2b5aa4 100644 --- a/source/blender/src/editnla.c +++ b/source/blender/src/editnla.c @@ -526,6 +526,9 @@ static void add_nla_block(short event) if(strip->object) id_lib_extern(&strip->object->id); /* checks lib data, sets correct flag for saving then */ + if(ob->nlastrips.first == NULL) + ob->nlaflag |= OB_NLA_OVERRIDE; + BLI_addtail(&ob->nlastrips, strip); BIF_undo_push("Add NLA strip"); @@ -580,6 +583,9 @@ static void add_nla_block_by_name(char name[32], Object *ob, short hold, short a act->id.us++; + if(ob->nlastrips.first == NULL) + ob->nlaflag |= OB_NLA_OVERRIDE; + BLI_addtail(&ob->nlastrips, strip); } |