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/blenkernel/intern/nla.c | |
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/blenkernel/intern/nla.c')
-rw-r--r-- | source/blender/blenkernel/intern/nla.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c index a348aef0399..961ea21d088 100644 --- a/source/blender/blenkernel/intern/nla.c +++ b/source/blender/blenkernel/intern/nla.c @@ -141,7 +141,10 @@ bActionStrip *convert_action_to_strip (Object *ob) //set_active_strip(ob, nstrip); /* is in editnla as does UI calls */ nstrip->repeat = 1.0; - + + if(ob->nlastrips.first == NULL) + ob->nlaflag |= OB_NLA_OVERRIDE; + BLI_addtail(&ob->nlastrips, nstrip); return nstrip; /* is created, malloced etc. here so is safe to just return the pointer? this is needed for setting this active in UI, and probably useful for API too */ |