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:
authorHoward Trickey <howard.trickey@gmail.com>2017-12-04 17:30:40 +0300
committerHoward Trickey <howard.trickey@gmail.com>2017-12-04 17:36:14 +0300
commitbdc15061fc5cf0c0c9bd075894b3a475e482248e (patch)
tree859084359a1a4ea8a2cd50c377c4386beda40918 /source/blender/editors/mesh
parent3533e082a046a4804448633fbccc62acbf4d6611 (diff)
Better bevel profile at extreme values of profile.
Patch from Richard Erhardt, with some additions & modifications. Changes bevel profile shape parameter so that can get arbitrarily near square profile as parameter -> 1. Adds code to make profile=0 case work, at least for cube corners, so changed hard min of profile parameter to 0 from 0.15.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_bevel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_bevel.c b/source/blender/editors/mesh/editmesh_bevel.c
index 68fd4212004..d4d7d92d5ad 100644
--- a/source/blender/editors/mesh/editmesh_bevel.c
+++ b/source/blender/editors/mesh/editmesh_bevel.c
@@ -58,8 +58,7 @@
#define MVAL_PIXEL_MARGIN 5.0f
-/* until implement profile = 0 case, need to clamp somewhat above zero */
-#define PROFILE_HARD_MIN 0.15f
+#define PROFILE_HARD_MIN 0.0f
#define SEGMENTS_HARD_MAX 1000