cu->mat = NULL;
cu->totcol = 0;
- /* Do not decrement ob->data usercount here, it's done at end of func with BKE_libblock_free_us() call. */
+ /* Do not decrement ob->data usercount here, it's done at end of func with BKE_id_free_us() call. */
ob->data = me;
ob->type = OB_MESH;
BKE_id_free(bmain, cu);
}
else {
- BKE_libblock_free_us(bmain, cu);
+ BKE_id_free_us(bmain, cu);
}
}