Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/util/undo.c
| Context not available. | |||||
| } | } | ||||
| static int reset_history_exec(bContext *C, wmOperator *UNUSED(op)) | |||||
| { | |||||
| BKE_undo_reset(); | |||||
| return OPERATOR_FINISHED; | |||||
| } | |||||
| void ED_OT_reset_history(wmOperatorType *ot) | |||||
| { | |||||
| /* identifiers */ | |||||
| ot->name = "Reset History"; | |||||
| ot->description = "Reset Undo history"; | |||||
| ot->idname = "ED_OT_reset_history"; | |||||
| /* api callbacks */ | |||||
| ot->exec = reset_history_exec; | |||||
| ot->poll = ED_operator_screenactive; | |||||
| } | |||||
| Context not available. | |||||