Bake-API: more MEM_callocN replacements by MEM_mallocN

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D561
This commit is contained in:
Dalai Felinto
2014-08-31 14:44:42 +02:00
parent 1f19a093aa
commit 0b4da966f9
2 changed files with 6 additions and 8 deletions

View File

@@ -461,7 +461,7 @@ bool RE_bake_pixels_populate_from_objects(
tris_high = MEM_callocN(sizeof(TriTessFace *) * tot_highpoly, "MVerts Highpoly Mesh Array");
/* assume all highpoly tessfaces are triangles */
dm_highpoly = MEM_callocN(sizeof(DerivedMesh *) * tot_highpoly, "Highpoly Derived Meshes");
dm_highpoly = MEM_mallocN(sizeof(DerivedMesh *) * tot_highpoly, "Highpoly Derived Meshes");
treeData = MEM_callocN(sizeof(BVHTreeFromMesh) * tot_highpoly, "Highpoly BVH Trees");
if (!is_cage) {