[Bf-blender-cvs] [7a899ce] master: Fix T37476 Bevel modifier got weight from wrong edge
Howard Trickey
noreply at git.blender.org
Sat Nov 16 14:10:17 CET 2013
Commit: 7a899ce9fc7fbcea219c12afe49c08114505b3aa
Author: Howard Trickey
Date: Sat Nov 16 08:07:03 2013 -0500
http://developer.blender.org/rB7a899ce9fc7fbcea219c12afe49c08114505b3aa
Fix T37476 Bevel modifier got weight from wrong edge
The bevel modifier with 'weight' activated was reading
the weights from the wrong edges.
===================================================================
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 a1f0858..5017c00 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -2188,7 +2188,7 @@ static void bevel_vert_construct(BMesh *bm, BevelParams *bp, BMVert *v)
if (bp->offset_type != BEVEL_AMT_PERCENT)
e->offset_r = e->offset_l;
if (bp->use_weights) {
- weight = BM_elem_float_data_get(&bm->edata, bme, CD_BWEIGHT);
+ weight = BM_elem_float_data_get(&bm->edata, e->e, CD_BWEIGHT);
e->offset_l *= weight;
e->offset_r *= weight;
}
More information about the Bf-blender-cvs
mailing list