[Bf-blender-cvs] [8794a16] gooseberry: Convenience feature: When linking a cache library, always default it to 'read' mode locally.

Lukas Tönne noreply at git.blender.org
Mon Mar 23 13:02:38 CET 2015


Commit: 8794a167a6ea9864f0bd3e76f64a619818c0c125
Author: Lukas Tönne
Date:   Wed Mar 4 18:30:10 2015 +0100
Branches: gooseberry
https://developer.blender.org/rB8794a167a6ea9864f0bd3e76f64a619818c0c125

Convenience feature: When linking a cache library, always default it to
'read' mode locally.

Linking a cache library is meant to be used for getting existing cache
data into a file.

===================================================================

M	source/blender/blenloader/intern/readfile.c

===================================================================

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 965afa7..24c68c6 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2008,6 +2008,9 @@ static void direct_link_cache_library(FileData *fd, CacheLibrary *cachelib)
 {
 	link_list(fd, &cachelib->items);
 	cachelib->items_hash = NULL;
+	
+	if (cachelib->id.flag & (LIB_EXTERN | LIB_INDIRECT))
+		cachelib->flag |= CACHE_LIBRARY_READ;
 }




More information about the Bf-blender-cvs mailing list