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/intern/simulation.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/blenkernel/intern/simulation.cc') 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)) +{ +} -- cgit v1.2.3