From 0fcd23a3880f0caf4a683203b486d451991edb2d Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 17 Jul 2020 12:28:09 +0200 Subject: Simulation: use better api for adding and removing simulation states --- source/blender/blenkernel/BKE_simulation.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_simulation.h') diff --git a/source/blender/blenkernel/BKE_simulation.h b/source/blender/blenkernel/BKE_simulation.h index ff6aaa5e30e..36f4122f4dc 100644 --- a/source/blender/blenkernel/BKE_simulation.h +++ b/source/blender/blenkernel/BKE_simulation.h @@ -17,13 +17,15 @@ #ifndef __BKE_SIMULATION_H__ #define __BKE_SIMULATION_H__ +#include "DNA_simulation_types.h" + #ifdef __cplusplus extern "C" { #endif struct Depsgraph; struct Main; -struct Simulation; +struct Scene; void *BKE_simulation_add(struct Main *bmain, const char *name); @@ -31,6 +33,12 @@ void BKE_simulation_data_update(struct Depsgraph *depsgraph, struct Scene *scene, struct Simulation *simulation); +SimulationState *BKE_simulation_state_add(Simulation *simulation, + eSimulationStateType type, + const char *name); +void BKE_simulation_state_remove(Simulation *simulation, SimulationState *state); +void BKE_simulation_state_remove_all(Simulation *simulation); + #ifdef __cplusplus } #endif -- cgit v1.2.3