From 2f60a5030f6c90c2278d3938460809de43012f85 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 29 Jun 2011 04:34:20 +0000 Subject: Actions can now be made single-user from the Outliner * Use the same method as from unlinking actions to do this. * Split off the make single-user code used for the ID-browser into a function in blenkernel which can be used elsewhere. Getting materials to also work using this method proved to be a bit too tricky (due to the whole messy ob vs obdata situation), so I haven't done that. --- source/blender/blenkernel/BKE_library.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/blenkernel/BKE_library.h') diff --git a/source/blender/blenkernel/BKE_library.h b/source/blender/blenkernel/BKE_library.h index 871a78bbab3..0d6d41109b4 100644 --- a/source/blender/blenkernel/BKE_library.h +++ b/source/blender/blenkernel/BKE_library.h @@ -44,6 +44,8 @@ struct Main; struct Library; struct wmWindowManager; struct bContext; +struct PointerRNA; +struct PropertyRNA; void *alloc_libblock(struct ListBase *lb, short type, const char *name); void *copy_libblock(void *rt); @@ -53,6 +55,7 @@ void id_lib_extern(struct ID *id); void id_us_plus(struct ID *id); void id_us_min(struct ID *id); int id_make_local(struct ID *id, int test); +int id_single_user(struct bContext *C, struct ID *id, struct PointerRNA *ptr, struct PropertyRNA *prop); int id_copy(struct ID *id, struct ID **newid, int test); int id_unlink(struct ID *id, int test); -- cgit v1.2.3