From 254b69417b7fa226f38c4f1b282b1d206b11de88 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 27 Sep 2019 15:15:10 +0200 Subject: remove refcounter from Function class --- source/blender/simulations/bparticles/forces.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/simulations/bparticles/forces.cpp') diff --git a/source/blender/simulations/bparticles/forces.cpp b/source/blender/simulations/bparticles/forces.cpp index 973a2e12740..9533c7de5e7 100644 --- a/source/blender/simulations/bparticles/forces.cpp +++ b/source/blender/simulations/bparticles/forces.cpp @@ -15,7 +15,7 @@ void GravityForce::add_force(ForceInterface &interface) auto inputs = m_inputs_fn->compute(interface); for (uint pindex : interface.pindices()) { - float3 acceleration = inputs->get("Direction", 0, pindex); + float3 acceleration = inputs->get("Acceleration", 0, pindex); float weight = inputs->get("Weight", 1, pindex); destination[pindex] += acceleration * weight; } -- cgit v1.2.3