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:
authorLukas Tönne <lukas.toenne@gmail.com>2015-02-27 18:22:19 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-23 14:23:11 +0300
commit8e76ac4744740e9bc419d9e4400f5cb4d51169bb (patch)
tree7f0006ad395154544cd92818eeecda773a6b64e7 /source/blender/blenkernel/intern/library.c
parent4cec4d9d3ca063543bf3fd1533591773c44328fa (diff)
Delete operator for cache library datablocks.
CacheLibrary datablock has a generic unlink function now, but currently nothing actually links to cache libs themselves, so it's empty. Still good to keep this in mind for the future.
Diffstat (limited to 'source/blender/blenkernel/intern/library.c')
-rw-r--r--source/blender/blenkernel/intern/library.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index d1641789c4e..a77ab86029b 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -412,6 +412,10 @@ bool id_unlink(ID *id, int test)
if (test) return true;
BKE_object_unlink((Object *)id);
break;
+ case ID_CL:
+ if (test) return true;
+ BKE_cache_library_unlink((CacheLibrary *)id);
+ break;
}
if (id->us == 0) {