Sculpt: Remove undo push for SCULPT_OT_optimize

Having this operator in the undo history is unnecessary and misleading;
we do not store the previous BVH state during this operator & the data
is all stored at runtime, so memfile undo has no effect here. Undoing
the operator will have no actual effect, and redoing the operator will
waste user time to rebuild the associated data.

Pull Request: https://projects.blender.org/blender/blender/pulls/132087
This commit is contained in:
Sean Kim
2024-12-19 01:36:34 +01:00
committed by Sean Kim
parent 3e71e6c216
commit a9f127975f

View File

@@ -179,7 +179,7 @@ static void SCULPT_OT_optimize(wmOperatorType *ot)
ot->exec = optimize_exec;
ot->poll = SCULPT_mode_poll;
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = OPTYPE_REGISTER;
}
/** \} */