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 <mail@jlucke.com>2019-07-29 14:30:55 +0300
committerJacques Lucke <mail@jlucke.com>2019-07-29 14:30:55 +0300
commitf2d3539cb56bfd095b94ebb0966b72f39dfb85c1 (patch)
treef0998348acb9cc5ba81db2a035e18e7e4e0a71e4 /source/blender/simulations/bparticles/forces.cpp
parentdbc453f414cc57f18e65ad623b2e525d397c2c70 (diff)
new particle function input providers abstraction
Diffstat (limited to 'source/blender/simulations/bparticles/forces.cpp')
-rw-r--r--source/blender/simulations/bparticles/forces.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/simulations/bparticles/forces.cpp b/source/blender/simulations/bparticles/forces.cpp
index f28fb478785..d5b8a9d3c9a 100644
--- a/source/blender/simulations/bparticles/forces.cpp
+++ b/source/blender/simulations/bparticles/forces.cpp
@@ -13,7 +13,7 @@ void GravityForce::add_force(ForceInterface &interface)
ParticlesBlock &block = interface.block();
ArrayRef<float3> destination = interface.combined_destination();
- auto inputs = m_compute_inputs.compute(interface);
+ auto inputs = m_compute_inputs->compute(interface);
for (uint pindex = 0; pindex < block.active_amount(); pindex++) {
float3 acceleration = inputs->get<float3>("Direction", 0, pindex);
@@ -28,7 +28,7 @@ void TurbulenceForce::add_force(ForceInterface &interface)
auto positions = block.attributes().get_float3("Position");
- auto inputs = m_compute_inputs.compute(interface);
+ auto inputs = m_compute_inputs->compute(interface);
for (uint pindex = 0; pindex < block.active_amount(); pindex++) {
float3 pos = positions[pindex];