[Bf-blender-cvs] [b56b41d51f2] master: Fix T60402: Increased data.users value, when running: C.active_object.to_mesh(C.depsgraph, True) - on curve.
Bastien Montagne
noreply at git.blender.org
Fri Jan 11 20:28:01 CET 2019
Commit: b56b41d51f29e6c24b377cb883767a1c3468497e
Author: Bastien Montagne
Date: Fri Jan 11 20:26:52 2019 +0100
Branches: master
https://developer.blender.org/rBb56b41d51f29e6c24b377cb883767a1c3468497e
Fix T60402: Increased data.users value, when running: C.active_object.to_mesh(C.depsgraph, True) - on curve.
More like a band-aid than anything else really, that code is horribly
weak and need to be fully re-written at some point (putting all those
temp data-blocks fully outside of bmain...). But for now should do.
===================================================================
M source/blender/blenkernel/intern/mesh_convert.c
===================================================================
diff --git a/source/blender/blenkernel/intern/mesh_convert.c b/source/blender/blenkernel/intern/mesh_convert.c
index 995a67e6659..f5a5f13c6ef 100644
--- a/source/blender/blenkernel/intern/mesh_convert.c
+++ b/source/blender/blenkernel/intern/mesh_convert.c
@@ -887,6 +887,7 @@ Mesh *BKE_mesh_new_from_object(
/* copies the data */
BKE_id_copy_ex(bmain, ob->data, (ID **)©cu, LIB_ID_CREATE_NO_DEG_TAG, false);
+ id_us_min(tmpobj->data);
tmpobj->data = copycu;
/* make sure texture space is calculated for a copy of curve,
More information about the Bf-blender-cvs
mailing list