Blender  V3.3
Classes | Variables
editarmature_undo.c File Reference
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
#include "DNA_armature_types.h"
#include "DNA_layer_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_array_utils.h"
#include "BLI_listbase.h"
#include "BKE_armature.h"
#include "BKE_context.h"
#include "BKE_layer.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_undo_system.h"
#include "DEG_depsgraph.h"
#include "ED_armature.h"
#include "ED_object.h"
#include "ED_undo.h"
#include "ED_util.h"
#include "WM_api.h"
#include "WM_types.h"

Go to the source code of this file.

Classes

struct  UndoArmature
 
struct  ArmatureUndoStep_Elem
 
struct  ArmatureUndoStep
 

Variables

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

Undo Conversion

typedef struct UndoArmature UndoArmature
 
static void undoarm_to_editarm (UndoArmature *uarm, bArmature *arm)
 
static voidundoarm_from_editarm (UndoArmature *uarm, bArmature *arm)
 
static void undoarm_free_data (UndoArmature *uarm)
 
static Objecteditarm_object_from_context (bContext *C)
 

Implements ED Undo System

Note
This is similar for all edit-mode types.
typedef struct ArmatureUndoStep_Elem ArmatureUndoStep_Elem
 
typedef struct ArmatureUndoStep ArmatureUndoStep
 
static bool armature_undosys_poll (bContext *C)
 
static bool armature_undosys_step_encode (struct bContext *C, struct Main *bmain, UndoStep *us_p)
 
static void armature_undosys_step_decode (struct bContext *C, struct Main *bmain, UndoStep *us_p, const eUndoStepDir UNUSED(dir), bool UNUSED(is_final))
 
static void armature_undosys_step_free (UndoStep *us_p)
 
static void armature_undosys_foreach_ID_ref (UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
 
void ED_armature_undosys_type (UndoType *ut)
 

Typedef Documentation

◆ ArmatureUndoStep

◆ ArmatureUndoStep_Elem

◆ UndoArmature

typedef struct UndoArmature UndoArmature

Function Documentation

◆ armature_undosys_foreach_ID_ref()

static void armature_undosys_foreach_ID_ref ( UndoStep us_p,
UndoTypeForEachIDRefFn  foreach_ID_ref_fn,
void user_data 
)
static

◆ armature_undosys_poll()

static bool armature_undosys_poll ( bContext C)
static

◆ armature_undosys_step_decode()

static void armature_undosys_step_decode ( struct bContext C,
struct Main bmain,
UndoStep us_p,
const eUndoStepDir   UNUSEDdir,
bool   UNUSEDis_final 
)
static

◆ armature_undosys_step_encode()

static bool armature_undosys_step_encode ( struct bContext C,
struct Main bmain,
UndoStep us_p 
)
static

◆ armature_undosys_step_free()

static void armature_undosys_step_free ( UndoStep us_p)
static

◆ ED_armature_undosys_type()

void ED_armature_undosys_type ( struct UndoType ut)

◆ editarm_object_from_context()

static Object* editarm_object_from_context ( bContext C)
static

◆ undoarm_free_data()

static void undoarm_free_data ( UndoArmature uarm)
static

Definition at line 93 of file editarmature_undo.c.

References ED_armature_ebone_listbase_free(), and UndoArmature::lb.

Referenced by armature_undosys_step_free().

◆ undoarm_from_editarm()

static void* undoarm_from_editarm ( UndoArmature uarm,
bArmature arm 
)
static

◆ undoarm_to_editarm()

static void undoarm_to_editarm ( UndoArmature uarm,
bArmature arm 
)
static

Variable Documentation

◆ LOG

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

We only need this locally.

Definition at line 38 of file editarmature_undo.c.

Referenced by armature_undosys_step_decode().