[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54231] trunk/blender/source/blender/bmesh /tools/bmesh_bevel.c: Fix bevel bug #33906, unwanted distortion with skewed meshes.
Howard Trickey
howard.trickey at gmail.com
Thu Jan 31 13:54:12 CET 2013
Revision: 54231
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54231
Author: howardt
Date: 2013-01-31 12:54:06 +0000 (Thu, 31 Jan 2013)
Log Message:
-----------
Fix bevel bug #33906, unwanted distortion with skewed meshes.
The code for making a rounded profile edge at a vertex needed
a special case for when that profile is on the third face
(the one not touched by the beveled edge) when only one edge
is beveled and the three faces are not orthogonal.
Modified Paths:
--------------
trunk/blender/source/blender/bmesh/tools/bmesh_bevel.c
Modified: trunk/blender/source/blender/bmesh/tools/bmesh_bevel.c
===================================================================
--- trunk/blender/source/blender/bmesh/tools/bmesh_bevel.c 2013-01-31 12:24:12 UTC (rev 54230)
+++ trunk/blender/source/blender/bmesh/tools/bmesh_bevel.c 2013-01-31 12:54:06 UTC (rev 54231)
@@ -1654,7 +1654,13 @@
if (v->ebev) {
va = mesh_vert(vm, i, 0, 0)->co;
vb = mesh_vert(vm, i, 0, ns)->co;
- project_to_edge(v->ebev->e, va, vb, midco);
+ if (bv->edgecount == 3 && bv->selcount == 1) {
+ /* special case: profile cuts the third face, so line it up with that */
+ copy_v3_v3(midco, bv->v->co);
+ }
+ else {
+ project_to_edge(v->ebev->e, va, vb, midco);
+ }
for (k = 1; k < ns; k++) {
get_point_on_round_edge(v->ebev, k, va, midco, vb, co);
copy_v3_v3(mesh_vert(vm, i, 0, k)->co, co);
More information about the Bf-blender-cvs
mailing list