Go to the source code of this file.
Example of a relevant operator is Apply Base.
Usage:
static int operator_exec((bContext *C, wmOperator *op) {
ed::sculpt_paint::undo::push_multires_mesh_begin(C, op->type->name); // Modify base mesh. ed::sculpt_paint::undo::push_multires_mesh_end(C, op->type->name);
return OPERATOR_FINISHED; }
If object is not in Sculpt mode or there is no active multires object, ED_undo_push is used instead.