Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-01-14 17:47:11 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-01-15 13:09:16 +0300
commit6af97b84dfa286fc5c8efb2b0536ed1b87f591b0 (patch)
treed335327ddcf6d5d2a4c1a4ecdb3de0034f6b4ab4 /source/blender/blenkernel/intern/mesh_convert.c
parent2f39ca38437d94a63ba020ef110b413ee3f7894b (diff)
Cleanup: replace usages of deprecated BKE_libblock_free by BKE_id_free.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_convert.c')
-rw-r--r--source/blender/blenkernel/intern/mesh_convert.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/mesh_convert.c b/source/blender/blenkernel/intern/mesh_convert.c
index f5a5f13c6ef..71c21bf3208 100644
--- a/source/blender/blenkernel/intern/mesh_convert.c
+++ b/source/blender/blenkernel/intern/mesh_convert.c
@@ -638,7 +638,7 @@ void BKE_mesh_from_nurbs_displist(
* the entire scene with associated depsgraph updates, which are
* problematic for renderers exporting data. */
id_us_min(&cu->id);
- BKE_libblock_free(bmain, cu);
+ BKE_id_free(bmain, cu);
}
else {
BKE_libblock_free_us(bmain, cu);
@@ -921,11 +921,11 @@ Mesh *BKE_mesh_new_from_object(
* if it didn't the curve did not have any segments or otherwise
* would have generated an empty mesh */
if (tmpobj->type != OB_MESH) {
- BKE_libblock_free(bmain, tmpobj);
+ BKE_id_free(bmain, tmpobj);
return NULL;
}
- BKE_libblock_free(bmain, tmpobj);
+ BKE_id_free(bmain, tmpobj);
/* XXX The curve to mesh conversion is convoluted... But essentially, BKE_mesh_from_nurbs_displist()
* already transfers the ownership of materials from the temp copy of the Curve ID to the new