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-17 22:19:48 +0300
committerJacques Lucke <jacques@blender.org>2020-07-17 22:20:51 +0300
commitaa8279648e22c8fc5ffc943036b77c47d1f8a764 (patch)
tree076bd188af901b2de560620c72b640c85eb30b79 /source/blender/simulation/intern/simulation_solver.cc
parent25582aef61ce6fdf8e6e9b8f86e5bff294370f3d (diff)
Simulation: extract node tree parsing code to separate file
Diffstat (limited to 'source/blender/simulation/intern/simulation_solver.cc')
-rw-r--r--source/blender/simulation/intern/simulation_solver.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/simulation/intern/simulation_solver.cc b/source/blender/simulation/intern/simulation_solver.cc
index 289e586682e..c51e8e1a37f 100644
--- a/source/blender/simulation/intern/simulation_solver.cc
+++ b/source/blender/simulation/intern/simulation_solver.cc
@@ -121,7 +121,8 @@ void solve_simulation_time_step(Simulation &simulation,
MutableSpan<float3> velocities = attributes.get<float3>("Velocity");
Array<float3> force_vectors{(uint)state->tot_particles, {0, 0, 0}};
- const Vector<const ParticleForce *> *forces = influences.particle_forces.lookup_ptr(state);
+ const Vector<const ParticleForce *> *forces = influences.particle_forces.lookup_ptr(
+ state->head.name);
if (forces != nullptr) {
for (const ParticleForce *force : *forces) {
force->add_force(attributes, force_vectors);