Fix leak creating 'empty' looptri bvh tree
This commit is contained in:
parent
103e38cbec
commit
e9b9b883fb
Notes:
blender-bot
2023-02-14 10:21:10 +01:00
Referenced by issue #46522, DataTransfer modifier: Impossible to set multiple transfer modes by script (if they're on different properties)
|
@ -980,6 +980,9 @@ static void bvhtree_from_mesh_looptri_setup_data(
|
|||
if (vert_allocated) {
|
||||
MEM_freeN((void *)vert);
|
||||
}
|
||||
if (loop_allocated) {
|
||||
MEM_freeN((void *)mloop);
|
||||
}
|
||||
if (looptri_allocated) {
|
||||
MEM_freeN((void *)looptri);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue