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:
parent
b488988ab1
commit
7a80c34f52
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue