[Bf-blender-cvs] [af5fc10e01d] undo-experiments-swap-reread-datablocks: undoexp: WIP work towards getting rid of double mapping for undo.
Bastien Montagne
noreply at git.blender.org
Sat Feb 1 19:44:21 CET 2020
Commit: af5fc10e01dc0163978ce1c4064f92ccf4b2d103
Author: Bastien Montagne
Date: Fri Jan 31 16:12:49 2020 +0100
Branches: undo-experiments-swap-reread-datablocks
https://developer.blender.org/rBaf5fc10e01dc0163978ce1c4064f92ccf4b2d103
undoexp: WIP work towards getting rid of double mapping for undo.
===================================================================
M source/blender/blenkernel/intern/blendfile.c
===================================================================
diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c
index cd685ec67a6..61f8cfc628b 100644
--- a/source/blender/blenkernel/intern/blendfile.c
+++ b/source/blender/blenkernel/intern/blendfile.c
@@ -374,8 +374,10 @@ static void setup_app_data(bContext *C,
* means that we do not reset their user count, however we do increase that one when doing
* lib_link on local IDs using linked ones.
* There is no real way to predict amount of changes here, so we have to fully redo
- * refcounting . */
- BKE_main_id_refcount_recompute(bmain, true);
+ * refcounting.
+ * Now that we re-use (and do not liblink in readfile.c) most local datablocks as well, we have
+ * to recompute refcount for all local IDs too. */
+ BKE_main_id_refcount_recompute(bmain, false);
}
}
More information about the Bf-blender-cvs
mailing list