Blender  V3.3
Classes | Variables
particle_edit_undo.c File Reference
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
#include "DNA_meshdata_types.h"
#include "DNA_scene_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_undo_system.h"
#include "DEG_depsgraph.h"
#include "ED_object.h"
#include "ED_particle.h"
#include "ED_physics.h"
#include "ED_undo.h"
#include "particle_edit_utildefines.h"
#include "physics_intern.h"

Go to the source code of this file.

Classes

struct  ParticleUndoStep
 

Functions

Undo Conversion
static void undoptcache_from_editcache (PTCacheUndo *undo, PTCacheEdit *edit)
 
static void undoptcache_to_editcache (PTCacheUndo *undo, PTCacheEdit *edit)
 
static void undoptcache_free_data (PTCacheUndo *undo)
 

Variables

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

Implements ED Undo System

typedef struct ParticleUndoStep ParticleUndoStep
 
static bool particle_undosys_poll (struct bContext *C)
 
static bool particle_undosys_step_encode (struct bContext *C, struct Main *UNUSED(bmain), UndoStep *us_p)
 
static void particle_undosys_step_decode (struct bContext *C, struct Main *UNUSED(bmain), UndoStep *us_p, const eUndoStepDir UNUSED(dir), bool UNUSED(is_final))
 
static void particle_undosys_step_free (UndoStep *us_p)
 
static void particle_undosys_foreach_ID_ref (UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
 
void ED_particle_undosys_type (UndoType *ut)
 

Typedef Documentation

◆ ParticleUndoStep

Function Documentation

◆ ED_particle_undosys_type()

void ED_particle_undosys_type ( struct UndoType ut)

◆ particle_undosys_foreach_ID_ref()

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

◆ particle_undosys_poll()

static bool particle_undosys_poll ( struct bContext C)
static

◆ particle_undosys_step_decode()

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

◆ particle_undosys_step_encode()

static bool particle_undosys_step_encode ( struct bContext C,
struct Main UNUSEDbmain,
UndoStep us_p 
)
static

◆ particle_undosys_step_free()

static void particle_undosys_step_free ( UndoStep us_p)
static

Definition at line 270 of file particle_edit_undo.c.

References ParticleUndoStep::data, and undoptcache_free_data().

Referenced by ED_particle_undosys_type().

◆ undoptcache_free_data()

static void undoptcache_free_data ( PTCacheUndo undo)
static

◆ undoptcache_from_editcache()

static void undoptcache_from_editcache ( PTCacheUndo undo,
PTCacheEdit edit 
)
static

◆ undoptcache_to_editcache()

static void undoptcache_to_editcache ( PTCacheUndo undo,
PTCacheEdit edit 
)
static

Variable Documentation

◆ LOG

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

Only needed this locally.

Definition at line 40 of file particle_edit_undo.c.

Referenced by particle_undosys_step_decode().