|
Blender V5.3
|
#include <cstdio>#include <cstring>#include "CLG_log.h"#include "BLI_listbase.hh"#include "BLI_string.hh"#include "BLI_sys_types.hh"#include "BLI_utildefines.hh"#include "BLT_translation.hh"#include "DNA_listBase.h"#include "DNA_windowmanager_types.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_lib_id.hh"#include "BKE_lib_override.hh"#include "BKE_library.hh"#include "BKE_main.hh"#include "BKE_undo_system.hh"#include "RNA_access.hh"#include "MEM_guardedalloc.h"#include "BKE_blender_undo.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | undo_stack _wm_undo_stack_disallow |
| #define | WITH_GLOBAL_UNDO_KEEP_ONE |
| #define | WITH_GLOBAL_UNDO_ENSURE_UPDATED |
| #define | WITH_GLOBAL_UNDO_CORRECT_ORDER |
Variables | |
| static CLG_LogRef | blender::LOG = {"undo"} |
Internal Nested Undo Checks | |
Make sure we're not running undo operations from 'step_encode', 'step_decode' callbacks. bugs caused by this situation aren't that hard to spot but aren't always so obvious. Best we have a check which shows the problem immediately. | |
| #define | WITH_NESTED_UNDO_CHECK |
| #define | UNDO_NESTED_ASSERT(state) |
| #define | UNDO_NESTED_CHECK_BEGIN |
| #define | UNDO_NESTED_CHECK_END |
| static bool | blender::g_undo_callback_running = false |
Undo Types | |
| static ListBaseT< UndoType > | blender::g_undo_types = {nullptr, nullptr} |
| void | blender::bke_undo_system_linker_workaround () |
| const UndoType * | blender::BKE_undosys_type_from_context (bContext *C) |
Used by ED_undo.hh, internal implementation.
Definition in file undo_system.cc.
| #define UNDO_NESTED_ASSERT | ( | state | ) |
Definition at line 107 of file undo_system.cc.
Referenced by blender::BKE_undosys_stack_clear(), blender::BKE_undosys_stack_init_from_main(), blender::BKE_undosys_stack_init_or_active_with_type(), blender::BKE_undosys_stack_limit_steps_and_memory(), blender::BKE_undosys_step_load_data_ex(), blender::BKE_undosys_step_push(), blender::BKE_undosys_step_push_init(), blender::BKE_undosys_step_push_init_with_type(), blender::BKE_undosys_step_push_with_type(), and blender::undosys_stack_push_main().
| #define UNDO_NESTED_CHECK_BEGIN |
Definition at line 108 of file undo_system.cc.
Referenced by blender::undosys_step_decode(), blender::undosys_step_encode(), and blender::undosys_step_free_and_unlink().
| #define UNDO_NESTED_CHECK_END |
Definition at line 114 of file undo_system.cc.
Referenced by blender::undosys_step_decode(), blender::undosys_step_encode(), and blender::undosys_step_free_and_unlink().
| #define undo_stack _wm_undo_stack_disallow |
Definition at line 43 of file undo_system.cc.
Referenced by blender::ed_redo_poll(), and blender::ed_undo_poll().
| #define WITH_GLOBAL_UNDO_CORRECT_ORDER |
Make sure we don't apply edits on top of a newer memfile state, see: #56163.
Definition at line 55 of file undo_system.cc.
| #define WITH_GLOBAL_UNDO_ENSURE_UPDATED |
Make sure all ID's created at the point we add an undo step that uses ID's.
Definition at line 49 of file undo_system.cc.
| #define WITH_GLOBAL_UNDO_KEEP_ONE |
Odd requirement of Blender that we always keep a memfile undo in the stack.
Definition at line 46 of file undo_system.cc.
| #define WITH_NESTED_UNDO_CHECK |
Definition at line 103 of file undo_system.cc.