Blender V4.3
particle_edit_undo.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
#include "DNA_scene_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_context.hh"
#include "BKE_layer.hh"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_undo_system.hh"
#include "DEG_depsgraph.hh"
#include "ED_object.hh"
#include "ED_particle.hh"
#include "ED_physics.hh"
#include "ED_undo.hh"
#include "particle_edit_utildefines.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)
 
Implements ED Undo System
static bool particle_undosys_poll (bContext *C)
 
static bool particle_undosys_step_encode (bContext *C, Main *, UndoStep *us_p)
 
static void particle_undosys_step_decode (bContext *C, Main *, UndoStep *us_p, const eUndoStepDir, bool)
 
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)
 

Variables

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

Function Documentation

◆ ED_particle_undosys_type()

◆ 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()

◆ particle_undosys_step_decode()

◆ particle_undosys_step_encode()

◆ particle_undosys_step_free()

static void particle_undosys_step_free ( UndoStep * us_p)
static

Definition at line 274 of file particle_edit_undo.cc.

References ParticleUndoStep::data, and undoptcache_free_data().

Referenced by ED_particle_undosys_type().

◆ undoptcache_free_data()

◆ undoptcache_from_editcache()

◆ undoptcache_to_editcache()

Variable Documentation

◆ LOG

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

Only needed this locally.

Definition at line 39 of file particle_edit_undo.cc.

Referenced by particle_undosys_step_decode().