From a3486e735f7e5af6ca78dafc8608cced5a121096 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 19 Mar 2018 17:46:49 +0100 Subject: Cleanup: move particle undo into own file Also avoid extern declarations which can get out of sync. --- source/blender/editors/physics/physics_intern.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/blender/editors/physics/physics_intern.h') diff --git a/source/blender/editors/physics/physics_intern.h b/source/blender/editors/physics/physics_intern.h index 6b6df15e987..cb281936634 100644 --- a/source/blender/editors/physics/physics_intern.h +++ b/source/blender/editors/physics/physics_intern.h @@ -33,6 +33,11 @@ #ifndef __PHYSICS_INTERN_H__ #define __PHYSICS_INTERN_H__ +struct Object; +struct PTCacheEdit; +struct ParticleSystem; +struct PointCache; +struct Scene; struct wmOperatorType; /* particle_edit.c */ @@ -63,6 +68,12 @@ void PARTICLE_OT_edited_clear(struct wmOperatorType *ot); void PARTICLE_OT_unify_length(struct wmOperatorType *ot); +void PTCacheUndo_clear(struct PTCacheEdit *edit); +void PE_create_particle_edit(struct Scene *scene, struct Object *ob, struct PointCache *cache, struct ParticleSystem *psys); +void recalc_lengths(struct PTCacheEdit *edit); +void recalc_emitter_field(struct Object *ob, struct ParticleSystem *psys); +void update_world_cos(struct Object *ob, struct PTCacheEdit *edit); + /* particle_object.c */ void OBJECT_OT_particle_system_add(struct wmOperatorType *ot); void OBJECT_OT_particle_system_remove(struct wmOperatorType *ot); -- cgit v1.2.3