[Bf-blender-cvs] [c32587c] gooseberry: When using the "new cache library" operator, enable fake user by default.
Lukas Tönne
noreply at git.blender.org
Mon Mar 23 13:01:26 CET 2015
Commit: c32587c1038f37f10c9f4ae52e91e1c22c82648f
Author: Lukas Tönne
Date: Wed Feb 25 16:36:03 2015 +0100
Branches: gooseberry
https://developer.blender.org/rBc32587c1038f37f10c9f4ae52e91e1c22c82648f
When using the "new cache library" operator, enable fake user by
default.
Nothing actually links to a cache library at this point (and probably
won't in the future), so fake user is necessary to avoid losing data.
===================================================================
M source/blender/editors/io/io_cache_library.c
===================================================================
diff --git a/source/blender/editors/io/io_cache_library.c b/source/blender/editors/io/io_cache_library.c
index 317dea6..21898af 100644
--- a/source/blender/editors/io/io_cache_library.c
+++ b/source/blender/editors/io/io_cache_library.c
@@ -83,6 +83,9 @@ static int new_cachelib_exec(bContext *C, wmOperator *UNUSED(op))
cachelib = BKE_cache_library_add(bmain, DATA_("CacheLibrary"));
}
+ /* enable fake user by default */
+ cachelib->id.flag |= LIB_FAKEUSER;
+
/* hook into UI */
UI_context_active_but_prop_get_templateID(C, &ptr, &prop);
More information about the Bf-blender-cvs
mailing list