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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-04 18:11:42 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-04 18:11:42 +0400
commit881f0b145641abe75f37fcbd48b4d659c634c0fe (patch)
treee0e1220a09fa17ffd87b7d9658fb755442129393 /source/blender/blenkernel/intern/library.c
parentdc44fd032e969362cba189f92392a1d22f3d8015 (diff)
Revert revision 57896 to fix Make Local > All with multi user datablocks. It's
causing problems with link/append, needs some deeper changes but it's too close to release for that.
Diffstat (limited to 'source/blender/blenkernel/intern/library.c')
-rw-r--r--source/blender/blenkernel/intern/library.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index 16e858fc087..4dc1e9be7ed 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -1573,9 +1573,10 @@ void BKE_library_make_local(Main *bmain, Library *lib, bool untagged_only)
{
if (lib == NULL || id->lib == lib) {
if (id->lib) {
- /* try make local, if not implemented fall back */
- if (!id_make_local(id, false))
- id_clear_lib_data(bmain, id);
+ /* for Make Local > All we should be calling id_make_local,
+ * but doing that breaks append (see #36003 and #36006), we
+ * we should make it work with all datablocks and id.us==0 */
+ id_clear_lib_data(bmain, id); /* sets 'id->flag' */
/* why sort alphabetically here but not in
* id_clear_lib_data() ? - campbell */