Fix T37476 Bevel modifier got weight from wrong edge
The bevel modifier with 'weight' activated was reading the weights from the wrong edges.
This commit is contained in:
parent
c72dc45bcb
commit
7a899ce9fc
Notes:
blender-bot
2023-02-14 11:35:46 +01:00
Referenced by issue #37496, Bevel Modifier gives wrong results Referenced by issue #37476, Bevel modifer - Weight behavior is wrong
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue