Blender V5.3
ED_undo.hh File Reference
#include "BLI_sys_types.hh"
#include "BLI_vector.hh"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

void blender::ED_undosys_type_init ()
void blender::ED_undosys_type_free ()
Generic Undo System Access

Non-operator undo editor functions.

bool blender::ED_undo_is_state_valid (bContext *C)
void blender::ED_undo_group_begin (bContext *C)
void blender::ED_undo_group_end (bContext *C)
void blender::ED_undo_push (bContext *C, const char *str, UndoEncodeHints hints=UndoEncodeHints(0))
void blender::ED_undo_push_op (bContext *C, wmOperator *op)
void blender::ED_undo_grouped_push (bContext *C, const char *str, UndoEncodeHints hints=UndoEncodeHints(0))
void blender::ED_undo_grouped_push_op (bContext *C, wmOperator *op)
void blender::ED_undo_pop_op (bContext *C, wmOperator *op)
void blender::ED_undo_pop (bContext *C)
void blender::ED_undo_redo (bContext *C)
bool blender::ED_undo_is_valid (const bContext *C, const char *undoname)
bool blender::ED_undo_has_redo_step (const bContext *C)
bool blender::ED_undo_is_memfile_compatible (const bContext *C)
std::optional< UndoEncodeHints > blender::ED_undo_is_legacy_compatible_for_property (bContext *C, ID *id, const PointerRNA &ptr, const PropertyRNA &prop)
UndoStack * blender::ED_undo_stack_get ()
Undo, Undo Push & Redo Operators
void blender::ED_OT_undo (wmOperatorType *ot)
void blender::ED_OT_undo_push (wmOperatorType *ot)
void blender::ED_OT_redo (wmOperatorType *ot)
void blender::ED_OT_undo_redo (wmOperatorType *ot)
Undo History Operator

See TOPBAR_MT_undo_history which is used to access this operator.

void blender::ED_OT_undo_history (wmOperatorType *ot)
Operator Repeat
bool blender::ED_undo_operator_repeat (bContext *C, wmOperator *op)
void blender::ED_undo_operator_repeat_cb (bContext *C, void *arg_op, void *arg_unused)
void blender::ED_undo_operator_repeat_cb_evt (bContext *C, void *arg_op, int arg_unused)
Undo Helper Functions
void blender::ED_undo_object_editmode_validate_scene_from_windows (wmWindowManager *wm, const Scene *scene_ref, Scene **scene_p, ViewLayer **view_layer_p)
void blender::ED_undo_object_editmode_restore_helper (Scene *scene, ViewLayer *view_layer, Object **object_array, uint object_array_len, uint object_array_stride)
void blender::ED_undo_object_set_active_or_warn (const Main &bmain, Scene *scene, ViewLayer *view_layer, Object *ob, const char *info, CLG_LogRef *log)
Undo View Layer Helper Functions

Needed because view layer functions such as BKE_view_layer_array_from_objects_in_edit_mode_unique_data also check visibility, which is not reliable when it comes to object undo operations, since hidden objects can be operated on in the properties editor, and local collections may be used.

Vector< Object * > blender::ED_undo_editmode_objects_from_view_layer (const Main &bmain, const Scene *scene, ViewLayer *view_layer)
Vector< Base * > blender::ED_undo_editmode_bases_from_view_layer (const Main &bmain, const Scene *scene, ViewLayer *view_layer)
size_t blender::ED_undosys_total_memory_calc (UndoStack *ustack)
Utilities
bool blender::ED_undosys_autosave_compatible (UndoStack *ustack)
void blender::ED_undosys_stack_memfile_id_changed_tag (UndoStack *ustack, ID *id)