Fix (unreported) bug in BVHTree 'free tessfaces' flag setting.

Could lead to atempt to free NULL pointer, and/or memory leak.
This commit is contained in:
Bastien Montagne
2018-05-09 12:33:21 +02:00
parent b59b812400
commit f3efa9e15f

View File

@@ -1132,7 +1132,7 @@ BVHTree *bvhtree_from_mesh_get(
data->looptri = looptri;
data->vert_allocated = vert_allocated;
data->edge_allocated = edge_allocated;
data->edge_allocated = edge_allocated;
data->face_allocated = face_allocated;
data->loop_allocated = loop_allocated;
data->looptri_allocated = looptri_allocated;