diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-06-15 13:34:12 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-06-15 13:34:12 +0300 |
commit | 7a80c34f52b69495a47680f45776a163b7e57755 (patch) | |
tree | 87b1fdd1a38dd08fbc7a1e9ca79cfb4cddd9ee6f /source | |
parent | b488988ab10a5f78d5cefe8346fc2fd2f1232d0f (diff) |
Fix serious bug in 'curve-to-mesh' conversion code.
Eeeeeek!^2 Calling unconditionnaly ID freeing `BKE_libblock_free()` on a
datablock (ob->data, i.e. Curve) that may be used elsewhere...
Veryveryvery bad!
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/mesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c index 67b1e0b5a7d..89e988782d2 100644 --- a/source/blender/blenkernel/intern/mesh.c +++ b/source/blender/blenkernel/intern/mesh.c @@ -1399,7 +1399,7 @@ void BKE_mesh_from_nurbs_displist(Object *ob, ListBase *dispbase, const bool use cu->totcol = 0; if (ob->data) { - BKE_libblock_free(bmain, ob->data); + BKE_libblock_free_us(bmain, ob->data); } ob->data = me; ob->type = OB_MESH; |