2.5 - Action Editor / Animation Stuff:
[blender-staging.git] / source / blender / blenkernel / intern / action.c
index beef3e1ef1d9b38885a3026bef2b84b8a000efd6..f2a92b9024f9587e5ebced13867cc49f8f3ad9f4 100644 (file)
 
 /* ***************** Library data level operations on action ************** */
 
+bAction *add_empty_action(const char name[])
+{
+       bAction *act;
+       
+       act= alloc_libblock(&G.main->action, ID_AC, name);
+       act->id.flag |= LIB_FAKEUSER;
+       act->id.us++;
+       
+       return act;
+}      
+
 static void make_local_action_channels(bAction *act)
 {
        bActionChannel *chan;