Fix (unreported) crash in mesh remap (i.e. data transfer).

Issue from rBabbd82a50, loops data were not correctly protected against multi-freeing in bvhtree data.
This commit is contained in:
Bastien Montagne 2015-08-07 16:18:13 +02:00
parent 930fc7d157
commit c677bd44ce
1 changed files with 3 additions and 0 deletions

View File

@ -1417,6 +1417,9 @@ void BKE_mesh_remap_calc_loops_from_dm(
if (verts_allocated_src) {
verts_allocated_src = false; /* Only 'give' our verts once, to first tree! */
}
if (loops_allocated_src) {
loops_allocated_src = false; /* Only 'give' our loops once, to first tree! */
}
if (looptri_allocated_src) {
looptri_allocated_src = false; /* Only 'give' our looptri once, to first tree! */
}