Fix #128656: Dynamic topology undo bugs when mixing memfile undo

Caused by 889b142924
which added the early return for the BMesh case.
This commit is contained in:
Hans Goudey
2024-10-18 16:47:23 -04:00
parent 8bb30e2c72
commit c98da9d971

View File

@@ -1504,6 +1504,9 @@ void push_nodes(const Depsgraph &depsgraph,
const Type type)
{
SculptSession &ss = *object.sculpt;
ss.needs_flush_to_id = 1;
const bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
if (ss.bm || ELEM(type, Type::DyntopoBegin, Type::DyntopoEnd)) {
const Span<bke::pbvh::BMeshNode> nodes = pbvh.nodes<bke::pbvh::BMeshNode>();
@@ -1555,8 +1558,6 @@ void push_nodes(const Depsgraph &depsgraph,
break;
}
}
ss.needs_flush_to_id = 1;
}
static void save_active_attribute(Object &object, SculptAttrRef *attr)