diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-08-21 18:38:54 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-08-21 18:38:54 +0300 |
commit | fda6430d6af754ebbea7a07424642d5c70f57b5b (patch) | |
tree | 6510fe7a41df3158f808ac0eccaca6d2a8119f67 /source/blender/simulations/bparticles/forces.cpp | |
parent | 700ff7b0731bdeaf0710b40deb7aeefe1770411d (diff) |
improve const correctness in many places
Diffstat (limited to 'source/blender/simulations/bparticles/forces.cpp')
-rw-r--r-- | source/blender/simulations/bparticles/forces.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/simulations/bparticles/forces.cpp b/source/blender/simulations/bparticles/forces.cpp index b2818a4e1f7..09afd175d82 100644 --- a/source/blender/simulations/bparticles/forces.cpp +++ b/source/blender/simulations/bparticles/forces.cpp @@ -11,7 +11,7 @@ Force::~Force() void GravityForce::add_force(ForceInterface &interface) { ParticlesBlock &block = interface.block(); - ArrayRef<float3> destination = interface.combined_destination(); + MutableArrayRef<float3> destination = interface.combined_destination(); auto inputs = m_compute_inputs->compute(interface); @@ -24,7 +24,7 @@ void GravityForce::add_force(ForceInterface &interface) void TurbulenceForce::add_force(ForceInterface &interface) { ParticlesBlock &block = interface.block(); - ArrayRef<float3> destination = interface.combined_destination(); + MutableArrayRef<float3> destination = interface.combined_destination(); auto positions = block.attributes().get<float3>("Position"); @@ -43,7 +43,7 @@ void TurbulenceForce::add_force(ForceInterface &interface) void PointForce::add_force(ForceInterface &interface) { ParticlesBlock &block = interface.block(); - ArrayRef<float3> destination = interface.combined_destination(); + MutableArrayRef<float3> destination = interface.combined_destination(); auto inputs = m_compute_inputs->compute(interface); |