Sculpt: Fix T101430: Dyntopo undo crash
This commit is contained in:
parent
5b0485fd77
commit
6b9f45c1d1
Notes:
blender-bot
2023-02-14 08:42:53 +01:00
Referenced by issue #101430, Regression: Crash upon undo in sculpt mode after a stroke with no effect
|
@ -147,8 +147,13 @@ static void SCULPT_dynamic_topology_disable_ex(
|
|||
SculptSession *ss = ob->sculpt;
|
||||
Mesh *me = ob->data;
|
||||
|
||||
BKE_sculpt_attribute_destroy(ob, ss->attrs.dyntopo_node_id_vertex);
|
||||
BKE_sculpt_attribute_destroy(ob, ss->attrs.dyntopo_node_id_face);
|
||||
if (ss->attrs.dyntopo_node_id_vertex) {
|
||||
BKE_sculpt_attribute_destroy(ob, ss->attrs.dyntopo_node_id_vertex);
|
||||
}
|
||||
|
||||
if (ss->attrs.dyntopo_node_id_face) {
|
||||
BKE_sculpt_attribute_destroy(ob, ss->attrs.dyntopo_node_id_face);
|
||||
}
|
||||
|
||||
SCULPT_pbvh_clear(ob);
|
||||
|
||||
|
|
Loading…
Reference in New Issue