summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-05-16 04:40:49 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-05-16 04:40:49 +0000
commit32db20aab4a5ae89deddec73ac4d40f69a1c5dee (patch)
tree6b3aefe0c2d7d63cc2fe9e092a0d0a3c37b8d8db
parentshow handles toggle (diff)
downloadinkscape-32db20aab4a5ae89deddec73ac4d40f69a1c5dee.tar.gz
inkscape-32db20aab4a5ae89deddec73ac4d40f69a1c5dee.zip
optionally use linear profile for sculpting
(bzr r851)
-rw-r--r--src/nodepath.cpp6
1 files changed, 5 insertions, 1 deletions
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