From 32db20aab4a5ae89deddec73ac4d40f69a1c5dee Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 16 May 2006 04:40:49 +0000 Subject: optionally use linear profile for sculpting (bzr r851) --- src/nodepath.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/nodepath.cpp') 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 -- cgit v1.2.3