|
Blender V4.3
|
#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_gpencil_legacy_types.h"#include "DNA_listBase.h"#include "DNA_object_types.h"#include "DNA_windowmanager_types.h"#include "BLI_listbase.h"#include "BKE_blender_undo.hh"#include "BKE_gpencil_legacy.h"#include "BKE_undo_system.hh"#include "ED_gpencil_legacy.hh"#include "WM_api.hh"#include "WM_types.hh"#include "DEG_depsgraph.hh"#include "gpencil_intern.hh"Go to the source code of this file.
Classes | |
| struct | bGPundonode |
Functions | |
| int | ED_gpencil_session_active () |
| int | ED_undo_gpencil_step (bContext *C, const int step) |
| void | gpencil_undo_init (bGPdata *gpd) |
| static void | gpencil_undo_free_node (bGPundonode *undo_node) |
| void | gpencil_undo_push (bGPdata *gpd) |
| void | gpencil_undo_finish () |
Variables | |
| static ListBase | undo_nodes = {nullptr, nullptr} |
| static bGPundonode * | cur_node = nullptr |
| int ED_gpencil_session_active | ( | ) |
Definition at line 44 of file gpencil_undo.cc.
References BLI_listbase_is_empty(), and undo_nodes.
Referenced by annotation_draw_data_layers(), annotation_draw_poll(), annotation_session_initdata(), ed_undo_step_by_index(), ed_undo_step_by_name(), ed_undo_step_direction(), and SCULPT_mode_poll_view3d().
| step | eUndoStepDir. |
Definition at line 49 of file gpencil_undo.cc.
References BKE_gpencil_free_layers(), BKE_gpencil_layer_duplicate(), BLI_addtail(), BLI_listbase_clear(), cur_node, DEG_id_tag_update(), ED_gpencil_data_get_pointers(), GP_DATA_CACHE_IS_DIRTY, bGPundonode::gpd, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, bGPdata::layers, LISTBASE_FOREACH, NA_EDITED, NC_GPENCIL, bGPundonode::next, OPERATOR_FINISHED, bGPundonode::prev, STEP_REDO, STEP_UNDO, and WM_event_add_notifier().
Referenced by ed_undo_step_direction().
| void gpencil_undo_finish | ( | ) |
Definition at line 164 of file gpencil_undo.cc.
References BLI_freelistN(), cur_node, ListBase::first, gpencil_undo_free_node(), bGPundonode::next, and undo_nodes.
Referenced by annotation_draw_exit().
|
static |
Definition at line 102 of file gpencil_undo.cc.
References bGPdata::adt, BKE_gpencil_free_data(), bGPundonode::gpd, and MEM_freeN().
Referenced by gpencil_undo_finish(), and gpencil_undo_push().
| void gpencil_undo_init | ( | bGPdata * | gpd | ) |
Definition at line 97 of file gpencil_undo.cc.
References gpencil_undo_push().
Referenced by annotation_session_initdata().
| void gpencil_undo_push | ( | bGPdata * | gpd | ) |
Definition at line 113 of file gpencil_undo.cc.
References BKE_gpencil_data_duplicate(), BLI_addtail(), BLI_freelinkN(), BLI_listbase_is_empty(), cur_node, bGPundonode::gpd, gpencil_undo_free_node(), ListBase::last, bGPundonode::next, bGPundonode::prev, steps, and undo_nodes.
Referenced by annotation_stroke_end(), and gpencil_undo_init().
|
static |
Definition at line 42 of file gpencil_undo.cc.
Referenced by ED_undo_gpencil_step(), gpencil_undo_finish(), and gpencil_undo_push().
|
static |
Definition at line 41 of file gpencil_undo.cc.
Referenced by ED_gpencil_session_active(), gpencil_undo_finish(), and gpencil_undo_push().