Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-28 13:03:02 +0300
committerJacques Lucke <jacques@blender.org>2020-07-28 13:10:37 +0300
commit3b9e16a4f7b8deca23ba8d2a02ef9182eb9d6bb4 (patch)
tree210485641412e442d0d6fee197b022b04b7fdeda /source/blender/simulation/intern/particle_function.hh
parentc8e45c3fe96ebbb4c75df568cc72a05421921a7e (diff)
Particles: initial support for the Time input node
Diffstat (limited to 'source/blender/simulation/intern/particle_function.hh')
-rw-r--r--source/blender/simulation/intern/particle_function.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/simulation/intern/particle_function.hh b/source/blender/simulation/intern/particle_function.hh
index abe0aae8522..c9b35640b47 100644
--- a/source/blender/simulation/intern/particle_function.hh
+++ b/source/blender/simulation/intern/particle_function.hh
@@ -26,10 +26,15 @@
namespace blender::sim {
+struct ParticleFunctionInputContext {
+ const SimulationSolveContext &solve_context;
+ const ParticleChunkContext &particles;
+};
+
class ParticleFunctionInput {
public:
virtual ~ParticleFunctionInput() = default;
- virtual void add_input(fn::AttributesRef attributes,
+ virtual void add_input(ParticleFunctionInputContext &context,
fn::MFParamsBuilder &params,
ResourceCollector &resources) const = 0;
};