diff options
Diffstat (limited to 'source/blender/simulations/bparticles/forces.cpp')
-rw-r--r-- | source/blender/simulations/bparticles/forces.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/simulations/bparticles/forces.cpp b/source/blender/simulations/bparticles/forces.cpp index 81d86a39592..9cc7fc427cb 100644 --- a/source/blender/simulations/bparticles/forces.cpp +++ b/source/blender/simulations/bparticles/forces.cpp @@ -42,14 +42,14 @@ class TurbulenceForce : public BParticles::Force { } }; -std::unique_ptr<Force> FORCE_directional(float3 force) +Force *FORCE_directional(float3 force) { - return std::unique_ptr<Force>(new DirectionalForce(force)); + return new DirectionalForce(force); } -std::unique_ptr<Force> FORCE_turbulence(float strength) +Force *FORCE_turbulence(float strength) { - return std::unique_ptr<Force>(new TurbulenceForce(strength)); + return new TurbulenceForce(strength); } } // namespace BParticles |