Merge branch 'blender-v4.4-release'

This commit is contained in:
Bastien Montagne
2025-02-13 18:42:16 +01:00

View File

@@ -50,7 +50,7 @@ BMBVHTree *BKE_bmbvh_new_ex(BMesh *bm,
/* could become argument */
const float epsilon = FLT_EPSILON * 2.0f;
BMBVHTree *bmtree = static_cast<BMBVHTree *>(MEM_callocN(sizeof(*bmtree), "BMBVHTree"));
BMBVHTree *bmtree = MEM_new<BMBVHTree>("BMBVHTree");
float cos[3][3];
int tottri;
@@ -174,7 +174,7 @@ void BKE_bmbvh_free(BMBVHTree *bmtree)
MEM_freeN((void *)bmtree->cos_cage);
}
MEM_freeN(bmtree);
MEM_delete(bmtree);
}
BVHTree *BKE_bmbvh_tree_get(BMBVHTree *bmtree)