Fix T86799: Boolean crashes duplicating object with "Fast" solver
BMesh intersect could leave invalid items in the selection list, causing a crash. The list is now cleared since boolean is such a destructive operation, it's unlikely the selection order would be useful. Thanks to @lukastoenne for finding the root cause.
This commit is contained in:
parent
5946352ae2
commit
315582f28c
Notes:
blender-bot
2023-02-14 00:37:17 +01:00
Referenced by issue #86799, 2.92 crashes when Duplicating Object inside Collection used for Boolean (set to "Fast" Solver)
|
@ -1660,5 +1660,9 @@ bool BM_mesh_intersect(BMesh *bm,
|
|||
|
||||
BLI_memarena_free(s.mem_arena);
|
||||
|
||||
/* It's unlikely the selection history is useful at this point,
|
||||
* if this is not called this array would need to be validated, see: T86799. */
|
||||
BM_select_history_clear(bm);
|
||||
|
||||
return (has_edit_isect || has_edit_boolean);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue