From: buliabyak Date: Tue, 16 May 2006 04:40:49 +0000 (+0000) Subject: optionally use linear profile for sculpting X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7b5dfddb312fe5e7331bfc4846c3725cd75f06dc;p=inkscape.git optionally use linear profile for sculpting --- 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