From b55c78a289c600696282f97191d6e800a1c1ac34 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 13 May 2020 12:39:17 +0200 Subject: Simulation: Add modifier to access simulation data For now the "Simulation" modifier only exists for point cloud objects, because we need this for the particle system. Right now, the modifier is doing nothing. There is a new `DEG_add_simulation_relation` function that is used by the modifier to make sure that the simulation is evaluated before the modifier is executed. Reviewers: brecht, sergey Differential Revision: https://developer.blender.org/D7549 --- source/blender/blenkernel/BKE_simulation.h | 3 +++ 1 file changed, 3 insertions(+) (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 aad0ada75a9..d1cf782e9e5 100644 --- a/source/blender/blenkernel/BKE_simulation.h +++ b/source/blender/blenkernel/BKE_simulation.h @@ -23,9 +23,12 @@ extern "C" { struct Main; struct Simulation; +struct Depsgraph; void *BKE_simulation_add(struct Main *bmain, const char *name); +void BKE_simulation_data_update(struct Depsgraph *depsgraph, struct Scene *scene); + #ifdef __cplusplus } #endif -- cgit v1.2.3