diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-05-03 16:42:55 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-05-04 15:02:58 +0300 |
commit | d8a03c77d796db4ae2546fbcbe230dbf4846b0ea (patch) | |
tree | df3426bdeb08321f7654bfe0ca5f814469c2d384 /source/blender/modifiers/intern/MOD_armature.c | |
parent | 4880e2e75a860f4716e3122f5ae14f34f50a9452 (diff) |
Allocate/free meshes with generic library functions.
This avoids the need to use Mesh-specific functions, and makes allocation
and freeing easy oneliners.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_armature.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_armature.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_armature.c b/source/blender/modifiers/intern/MOD_armature.c index 488d04a1466..8e8b095d069 100644 --- a/source/blender/modifiers/intern/MOD_armature.c +++ b/source/blender/modifiers/intern/MOD_armature.c @@ -152,8 +152,7 @@ static void deformVertsEM( } if (!mesh) { - BKE_mesh_free(mesh_src); - MEM_freeN(mesh_src); + BKE_id_free(NULL, mesh_src); } } @@ -173,8 +172,7 @@ static void deformMatricesEM( amd->deformflag, NULL, amd->defgrp_name); if (!mesh) { - BKE_mesh_free(mesh_src); - MEM_freeN(mesh_src); + BKE_id_free(NULL, mesh_src); } } |