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:
@@ -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;
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
Reference in New Issue
Block a user