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:
authorPablo Dobarro <pablodp606@gmail.com>2019-11-26 20:43:44 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-11-27 19:08:15 +0300
commit0e4014ef9215ffe38108b7596a29bd3c5c41bbd1 (patch)
tree65fe97e0e01fcb2ad510bf9ecb9b5ed3c09161d6 /source/blender/blenlib/intern/math_base_inline.c
parentb6d436ae28311a8e2e7ea0079b1fa1fb046909ab (diff)
Sculpt/Paint: Move Elastic Deform Kelvinlets to BKE
After this commit it should be possible to share the same deformation formulas that are used in the Elastic Deform brush with other areas of Blender such as Grease Pencil or proportional editing. This also removes a lot of code from sculpt.c that is not direclty related to sculpting. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6281
Diffstat (limited to 'source/blender/blenlib/intern/math_base_inline.c')
-rw-r--r--source/blender/blenlib/intern/math_base_inline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c
index 4c86b9d3396..85c6425bb2f 100644
--- a/source/blender/blenlib/intern/math_base_inline.c
+++ b/source/blender/blenlib/intern/math_base_inline.c
@@ -58,6 +58,10 @@ MINLINE float pow4f(float x)
{
return pow2f(pow2f(x));
}
+MINLINE float pow5f(float x)
+{
+ return pow4f(x) * x;
+}
MINLINE float pow7f(float x)
{
return pow2f(pow3f(x)) * x;