diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-12-20 19:01:14 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-12-20 19:01:14 +0300 |
commit | 6600c532c468f3040e4e13a4524436323273e059 (patch) | |
tree | cefa898b1ae335adf6282176a3ffb9c944f19145 /source/blender/simulations/bparticles/forces.cpp | |
parent | 81573c53b662e4ec605a834d830afd2d23702e9e (diff) |
change particle function evaluation api
Diffstat (limited to 'source/blender/simulations/bparticles/forces.cpp')
-rw-r--r-- | source/blender/simulations/bparticles/forces.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/simulations/bparticles/forces.cpp b/source/blender/simulations/bparticles/forces.cpp index 015fa62bcde..f340bce8245 100644 --- a/source/blender/simulations/bparticles/forces.cpp +++ b/source/blender/simulations/bparticles/forces.cpp @@ -12,8 +12,8 @@ void CustomForce::add_force(ForceInterface &interface) { MutableArrayRef<float3> dst = interface.combined_destination(); - auto inputs = ParticleFunctionResult::Compute( - *m_inputs_fn, interface.pindices(), interface.attributes()); + ParticleFunctionEvaluator inputs{*m_inputs_fn, interface.pindices(), interface.attributes()}; + inputs.compute(); for (uint pindex : interface.pindices()) { dst[pindex] += inputs.get_single<float3>("Force", 0, pindex); |