[Bf-blender-cvs] [a129e53e165] soc-2019-bevel-profiles: Bevel: Fix profile recalculation with new orientations
Hans Goudey
noreply at git.blender.org
Tue Aug 13 00:44:53 CEST 2019
Commit: a129e53e1656fdd628ed37d316841ab10f821dc8
Author: Hans Goudey
Date: Mon Aug 12 18:35:34 2019 -0400
Branches: soc-2019-bevel-profiles
https://developer.blender.org/rBa129e53e1656fdd628ed37d316841ab10f821dc8
Bevel: Fix profile recalculation with new orientations
===================================================================
M source/blender/bmesh/tools/bmesh_bevel.c
===================================================================
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c
index e5600bf9bea..7d2bcb26231 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -5676,7 +5676,7 @@ static void build_vmesh(BevelParams *bp, BMesh *bm, BevVert *bv)
weld2 = bndv;
move_weld_profile_planes(bv, weld1, weld2);
- calculate_profile(bp, weld1, !weld1->is_profile_start, false);
+// calculate_profile(bp, weld1, !weld1->is_profile_start, false);
}
}
} while ((bndv = bndv->next) != vm->boundstart);
@@ -5688,13 +5688,10 @@ static void build_vmesh(BevelParams *bp, BMesh *bm, BevVert *bv)
i = bndv->index;
/* bndv's last vert along the boundary arc is the the first of the next BoundVert's arc. */
copy_mesh_vert(vm, i, 0, ns, bndv->next->index, 0, 0);
- /* Fix the profile orientation if it has the wrong direction and it's not a miter profile. */
-// if (bp->use_custom_profile && !bndv->is_arc_start && !bndv->is_patch_start) {
-// calculate_profile(bp, bndv, !bndv->is_profile_start, false);
-// }
- if (bp->use_custom_profile && !bndv->is_profile_start &&
- !bndv->is_arc_start && !bndv->is_patch_start) {
- calculate_profile(bp, bndv, true, false);
+
+ /* Fix the profile orientations if it's not a miter profile. */
+ if (bp->use_custom_profile && !bndv->is_arc_start && !bndv->is_patch_start) {
+ calculate_profile(bp, bndv, !bndv->is_profile_start, false);
}
if (vm->mesh_kind != M_ADJ) {
for (k = 1; k < ns; k++) {
@@ -7484,8 +7481,6 @@ void BM_mesh_bevel(BMesh *bm,
BevVert *bv;
BevelParams bp = {NULL};
- printf("\nBM MESH BEVEL\n");
-
bp.offset = offset;
bp.offset_type = offset_type;
bp.seg = (int)segments;
More information about the Bf-blender-cvs
mailing list