|
Blender V4.3
|
#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_brush_types.h"#include "BKE_paint.hh"#include "BKE_undo_system.hh"#include "ED_paint.hh"#include "ED_undo.hh"#include "WM_api.hh"#include "paint_intern.hh"#include "BLI_array_utils.h"Go to the source code of this file.
Classes | |
| struct | UndoCurve |
| struct | PaintCurveUndoStep |
Functions | |
Undo Conversion | |
| static void | undocurve_from_paintcurve (UndoCurve *uc, const PaintCurve *pc) |
| static void | undocurve_to_paintcurve (const UndoCurve *uc, PaintCurve *pc) |
| static void | undocurve_free_data (UndoCurve *uc) |
Implements ED Undo System | |
| static bool | paintcurve_undosys_poll (bContext *C) |
| static void | paintcurve_undosys_step_encode_init (bContext *C, UndoStep *us_p) |
| static bool | paintcurve_undosys_step_encode (bContext *C, Main *, UndoStep *us_p) |
| static void | paintcurve_undosys_step_decode (bContext *, Main *, UndoStep *us_p, const eUndoStepDir, bool) |
| static void | paintcurve_undosys_step_free (UndoStep *us_p) |
| static void | paintcurve_undosys_foreach_ID_ref (UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data) |
| void | ED_paintcurve_undosys_type (UndoType *ut) |
Utilities | |
| void | ED_paintcurve_undo_push_begin (const char *name) |
| void | ED_paintcurve_undo_push_end (bContext *C) |
| void ED_paintcurve_undo_push_begin | ( | const char * | name | ) |
Definition at line 160 of file paint_curve_undo.cc.
References BKE_undosys_step_push_init_with_type(), BKE_UNDOSYS_TYPE_PAINTCURVE, and ED_undo_stack_get().
Referenced by paintcurve_delete_point_exec(), paintcurve_point_add(), paintcurve_point_select(), and paintcurve_slide_modal().
| void ED_paintcurve_undo_push_end | ( | bContext * | C | ) |
Definition at line 167 of file paint_curve_undo.cc.
References BKE_undosys_stack_limit_steps_and_memory_defaults, BKE_undosys_step_push(), ED_undo_stack_get(), and WM_file_tag_modified().
Referenced by paintcurve_delete_point_exec(), paintcurve_point_add(), paintcurve_point_select(), and paintcurve_slide_modal().
| void ED_paintcurve_undosys_type | ( | UndoType * | ut | ) |
Export for ED_undo_sys.
Definition at line 138 of file paint_curve_undo.cc.
References UndoType::flags, UndoType::name, paintcurve_undosys_foreach_ID_ref(), paintcurve_undosys_poll(), paintcurve_undosys_step_decode(), paintcurve_undosys_step_encode(), paintcurve_undosys_step_encode_init(), paintcurve_undosys_step_free(), UndoType::poll, UndoType::step_decode, UndoType::step_encode, UndoType::step_encode_init, UndoType::step_foreach_ID_ref, UndoType::step_free, and UndoType::step_size.
Referenced by ED_undosys_type_init().
|
static |
Definition at line 130 of file paint_curve_undo.cc.
References PaintCurveUndoStep::pc_ref.
Referenced by ED_paintcurve_undosys_type().
|
static |
Definition at line 74 of file paint_curve_undo.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), Brush::paint_curve, and paint_curve_poll().
Referenced by ED_paintcurve_undosys_type().
|
static |
Definition at line 114 of file paint_curve_undo.cc.
References PaintCurveUndoStep::data, PaintCurveUndoStep::pc_ref, and undocurve_to_paintcurve().
Referenced by ED_paintcurve_undosys_type().
Definition at line 90 of file paint_curve_undo.cc.
References BKE_paint_brush(), BKE_paint_get_active_from_context(), BLI_assert, PaintCurveUndoStep::data, UndoStep::data_size, Brush::paint_curve, paint_curve_poll(), PaintCurveUndoStep::pc_ref, PaintCurveUndoStep::step, and undocurve_from_paintcurve().
Referenced by ED_paintcurve_undosys_type().
Definition at line 84 of file paint_curve_undo.cc.
References UNUSED_VARS.
Referenced by ED_paintcurve_undosys_type().
|
static |
Definition at line 124 of file paint_curve_undo.cc.
References PaintCurveUndoStep::data, and undocurve_free_data().
Referenced by ED_paintcurve_undosys_type().
|
static |
Definition at line 55 of file paint_curve_undo.cc.
References MEM_SAFE_FREE, and UndoCurve::points.
Referenced by paintcurve_undosys_step_free().
|
static |
Definition at line 39 of file paint_curve_undo.cc.
References PaintCurve::add_index, UndoCurve::add_index, BLI_array_is_zeroed, BLI_assert, MEM_dupallocN, PaintCurve::points, UndoCurve::points, PaintCurve::tot_points, and UndoCurve::tot_points.
Referenced by paintcurve_undosys_step_encode().
|
static |
Definition at line 47 of file paint_curve_undo.cc.
References PaintCurve::add_index, UndoCurve::add_index, MEM_dupallocN, MEM_SAFE_FREE, PaintCurve::points, UndoCurve::points, PaintCurve::tot_points, and UndoCurve::tot_points.
Referenced by paintcurve_undosys_step_decode().