diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2013-11-16 17:07:03 +0400 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2013-11-16 17:10:12 +0400 |
commit | 7a899ce9fc7fbcea219c12afe49c08114505b3aa (patch) | |
tree | 3d32f32a731ffae3bef9caf69d2f684786bd60a2 /source/blender/bmesh | |
parent | c72dc45bcb7de371934b9ad741d1938c5827b165 (diff) |
Fix T37476 Bevel modifier got weight from wrong edge
The bevel modifier with 'weight' activated was reading
the weights from the wrong edges.
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bevel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index a1f08583e2c..5017c00259b 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; } |