From f7029bc9606cc1cda8801eb56a7213ace013efce Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 10 Apr 2023 14:02:32 -0400 Subject: [PATCH] Cleanup: Incorrect assignment in previous cleanup commit --- source/blender/python/mathutils/mathutils_bvhtree.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/mathutils/mathutils_bvhtree.cc b/source/blender/python/mathutils/mathutils_bvhtree.cc index 7565f5a6aba..4caebb27cc1 100644 --- a/source/blender/python/mathutils/mathutils_bvhtree.cc +++ b/source/blender/python/mathutils/mathutils_bvhtree.cc @@ -1145,7 +1145,7 @@ static PyObject *C_BVHTree_FromObject(PyObject * /*cls*/, PyObject *args, PyObje float(*coords)[3] = static_cast( MEM_mallocN(sizeof(*coords) * size_t(coords_len), __func__)); - uint(*tris)[3] = tris = static_cast( + uint(*tris)[3] = static_cast( MEM_mallocN(sizeof(*tris) * size_t(looptris.size()), __func__)); memcpy(coords, BKE_mesh_vert_positions(mesh), sizeof(float[3]) * size_t(mesh->totvert));