diff options
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_simulation.h | 3 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/simulation.cc | 7 |
2 files changed, 10 insertions, 0 deletions
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 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)) +{ +} |