Blender V4.3
editlattice_undo.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
#include "BLI_array_utils.h"
#include "BLI_utildefines.h"
#include "DNA_curve_types.h"
#include "DNA_lattice_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_context.hh"
#include "BKE_deform.hh"
#include "BKE_layer.hh"
#include "BKE_main.hh"
#include "BKE_object.hh"
#include "BKE_undo_system.hh"
#include "DEG_depsgraph.hh"
#include "ED_lattice.hh"
#include "ED_object.hh"
#include "ED_undo.hh"
#include "ED_util.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "lattice_intern.hh"

Go to the source code of this file.

Classes

struct  UndoLattice
 
struct  LatticeUndoStep_Elem
 
struct  LatticeUndoStep
 

Functions

Undo Conversion
static void undolatt_to_editlatt (UndoLattice *ult, EditLatt *editlatt)
 
static void * undolatt_from_editlatt (UndoLattice *ult, EditLatt *editlatt)
 
static void undolatt_free_data (UndoLattice *ult)
 
static Objecteditlatt_object_from_context (bContext *C)
 
Implements ED Undo System
Note
This is similar for all edit-mode types.
static bool lattice_undosys_poll (bContext *C)
 
static bool lattice_undosys_step_encode (bContext *C, Main *bmain, UndoStep *us_p)
 
static void lattice_undosys_step_decode (bContext *C, Main *bmain, UndoStep *us_p, const eUndoStepDir, bool)
 
static void lattice_undosys_step_free (UndoStep *us_p)
 
static void lattice_undosys_foreach_ID_ref (UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
 
void ED_lattice_undosys_type (UndoType *ut)
 

Variables

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

Function Documentation

◆ ED_lattice_undosys_type()

◆ editlatt_object_from_context()

◆ lattice_undosys_foreach_ID_ref()

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

◆ lattice_undosys_poll()

static bool lattice_undosys_poll ( bContext * C)
static

◆ lattice_undosys_step_decode()

◆ lattice_undosys_step_encode()

◆ lattice_undosys_step_free()

static void lattice_undosys_step_free ( UndoStep * us_p)
static

◆ undolatt_free_data()

static void undolatt_free_data ( UndoLattice * ult)
static

◆ undolatt_from_editlatt()

◆ undolatt_to_editlatt()

Variable Documentation

◆ LOG

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

We only need this locally.

Definition at line 46 of file editlattice_undo.cc.

Referenced by lattice_undosys_step_decode().