Commit: 1c20be94bc7e0a569efd1dd90a05412d8f8c12ab
Author: Lukas Tönne
Date:   Wed Feb 25 16:36:03 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB1c20be94bc7e0a569efd1dd90a05412d8f8c12ab

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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to