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!
This commit is contained in:
Bastien Montagne 2017-06-15 12:34:12 +02:00
parent b488988ab1
commit 7a80c34f52
1 changed files with 1 additions and 1 deletions

View File

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