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>2013-11-16 17:07:03 +0400
committerHoward Trickey <howard.trickey@gmail.com>2013-11-16 17:10:12 +0400
commit7a899ce9fc7fbcea219c12afe49c08114505b3aa (patch)
tree3d32f32a731ffae3bef9caf69d2f684786bd60a2 /source/blender
parentc72dc45bcb7de371934b9ad741d1938c5827b165 (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')
-rw-r--r--source/blender/bmesh/tools/bmesh_bevel.c2
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;
}