Blender V4.3
editcurve_undo.cc File Reference
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_array_utils.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BKE_anim_data.hh"
#include "BKE_context.hh"
#include "BKE_curve.hh"
#include "BKE_fcurve.hh"
#include "BKE_layer.hh"
#include "BKE_main.hh"
#include "BKE_object.hh"
#include "BKE_undo_system.hh"
#include "DEG_depsgraph.hh"
#include "ED_curve.hh"
#include "ED_undo.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "curve_intern.hh"

Go to the source code of this file.

Classes

struct  UndoCurve
 
struct  CurveUndoStep_Elem
 
struct  CurveUndoStep
 

Functions

Undo Conversion
static void undocurve_to_editcurve (Main *bmain, UndoCurve *ucu, Curve *cu, short *r_shapenr)
 
static void undocurve_from_editcurve (UndoCurve *ucu, Curve *cu, const short shapenr)
 
static void undocurve_free_data (UndoCurve *uc)
 
static Objecteditcurve_object_from_context (bContext *C)
 
Implements ED Undo System
Note
This is similar for all edit-mode types.
static bool curve_undosys_poll (bContext *C)
 
static bool curve_undosys_step_encode (bContext *C, Main *bmain, UndoStep *us_p)
 
static void curve_undosys_step_decode (bContext *C, Main *bmain, UndoStep *us_p, const eUndoStepDir, bool)
 
static void curve_undosys_step_free (UndoStep *us_p)
 
static void curve_undosys_foreach_ID_ref (UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
 
void ED_curve_undosys_type (UndoType *ut)
 

Variables

static CLG_LogRef LOG = {"ed.undo.curve"}
 

Function Documentation

◆ curve_undosys_foreach_ID_ref()

static void curve_undosys_foreach_ID_ref ( UndoStep * us_p,
UndoTypeForEachIDRefFn foreach_ID_ref_fn,
void * user_data )
static

◆ curve_undosys_poll()

static bool curve_undosys_poll ( bContext * C)
static

◆ curve_undosys_step_decode()

◆ curve_undosys_step_encode()

◆ curve_undosys_step_free()

static void curve_undosys_step_free ( UndoStep * us_p)
static

◆ ED_curve_undosys_type()

◆ editcurve_object_from_context()

◆ undocurve_free_data()

◆ undocurve_from_editcurve()

◆ undocurve_to_editcurve()

Variable Documentation

◆ LOG

CLG_LogRef LOG = {"ed.undo.curve"}
static

We only need this locally.

Definition at line 43 of file editcurve_undo.cc.

Referenced by curve_undosys_step_decode().