Fix: Sculpt: Undo restore crash with first operation
Mistake in 057fdf4224e0e07a6020cabd4d2a1ca4f307f0a5
This commit is contained in:
parent
453d55b1c4
commit
0363650990
@ -1461,6 +1461,9 @@ static void restore_position(Object &object, const Span<PBVHNode *> nodes)
|
||||
break;
|
||||
}
|
||||
case PBVH_BMESH: {
|
||||
if (!undo::get_bmesh_log_entry()) {
|
||||
return;
|
||||
}
|
||||
threading::parallel_for(nodes.index_range(), 1, [&](const IndexRange range) {
|
||||
for (PBVHNode *node : nodes.slice(range)) {
|
||||
for (BMVert *vert : BKE_pbvh_bmesh_node_unique_verts(node)) {
|
||||
|
Loading…
Reference in New Issue
Block a user