diff options
author | Jacques Lucke <jacques@blender.org> | 2020-05-13 13:39:17 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-05-13 13:39:17 +0300 |
commit | b55c78a289c600696282f97191d6e800a1c1ac34 (patch) | |
tree | a17132a55b05b0e90e5a1ed4ada7d153b9d4e116 /source/blender/blenkernel/intern/simulation.cc | |
parent | 23fd95458c264dc53f5ce94cd2c65404a69d0f6f (diff) |
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
Diffstat (limited to 'source/blender/blenkernel/intern/simulation.cc')
-rw-r--r-- | source/blender/blenkernel/intern/simulation.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/simulation.cc b/source/blender/blenkernel/intern/simulation.cc index ace91424764..b4cfa7cf0ef 100644 --- a/source/blender/blenkernel/intern/simulation.cc +++ b/source/blender/blenkernel/intern/simulation.cc @@ -22,6 +22,7 @@ #include "DNA_ID.h" #include "DNA_defaults.h" +#include "DNA_scene_types.h" #include "DNA_simulation_types.h" #include "BLI_compiler_compat.h" @@ -44,6 +45,8 @@ #include "BLT_translation.h" +#include "DEG_depsgraph.h" + static void simulation_init_data(ID *id) { Simulation *simulation = (Simulation *)id; @@ -108,3 +111,7 @@ IDTypeInfo IDType_ID_SIM = { /* free_data */ simulation_free_data, /* make_local */ nullptr, }; + +void BKE_simulation_data_update(Depsgraph *UNUSED(depsgraph), Scene *UNUSED(scene)) +{ +} |