From 7b5dfddb312fe5e7331bfc4846c3725cd75f06dc Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 16 May 2006 04:40:49 +0000 Subject: [PATCH] optionally use linear profile for sculpting --- src/nodepath.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nodepath.cpp b/src/nodepath.cpp index 1ffef1880..2e5b24c62 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -1002,7 +1002,11 @@ sculpt_profile (double x, double alpha) { if (x >= 1) return 0; - return (0.5 * cos (M_PI * (pow(x, alpha))) + 0.5); + if (prefs_get_int_attribute("tools.nodes", "sculpt_profile_linear", 0) == 1) { + return 1 - x; + } else { + return (0.5 * cos (M_PI * (pow(x, alpha))) + 0.5); + } } double -- 2.30.2