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:
Diffstat (limited to 'source/blender/simulations/bparticles/forces.cpp')
-rw-r--r--source/blender/simulations/bparticles/forces.cpp8
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