Revert "Fix T76313: Redo in Multires doesn't bring back stroke made after a subdivide"

The fix was actually missing few bits:

- Firstly, the operator itself is not to do UNDO push
- Secondly, multires sculpt/top level are not pushed to the undo
  node, so undo can not happen reliably.

It should be possible to incorporate some of the work from WIP patch
for propagation undo, but it needs more work.

Reverting code base to the previous state, since currently things
are actually a bit more confusing then they used to be.

This reverts commit 0c928087a3.
This commit is contained in:
2020-05-04 17:38:15 +02:00
parent 0c928087a3
commit 1222f561a2

View File

@@ -1442,12 +1442,8 @@ static int multires_subdivide_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
ED_sculpt_undo_push_multires_mesh_begin(C, op->type->name);
multiresModifier_subdivide(object, mmd);
ED_sculpt_undo_push_multires_mesh_end(C, op->type->name);
ED_object_iter_other(
CTX_data_main(C), object, true, ED_object_multires_update_totlevels_cb, &mmd->totlvl);