forked from bartvdbraak/blender
fix for [#30738] Shading smooth/flat instability
Committing patch from Francisco De La Cruz ([#30753] Shade smooth not preserved when toggling editmode) Thanks for researching this and providing fix.
This commit is contained in:
parent
26b0255049
commit
b1951ac1ba
@ -256,10 +256,10 @@ void BM_mesh_bm_from_me(BMesh *bm, Mesh *me, int set_key, int act_key_nr)
|
|||||||
BM_elem_index_set(f, bm->totface - 1); /* set_ok */
|
BM_elem_index_set(f, bm->totface - 1); /* set_ok */
|
||||||
|
|
||||||
/* transfer flag */
|
/* transfer flag */
|
||||||
f->head.hflag = BM_face_flag_from_mflag(mpoly->flag & ~SELECT);
|
f->head.hflag = BM_face_flag_from_mflag(mpoly->flag & ~ME_FACE_SEL);
|
||||||
|
|
||||||
/* this is necessary for selection counts to work properly */
|
/* this is necessary for selection counts to work properly */
|
||||||
if (mpoly->flag & SELECT) {
|
if (mpoly->flag & ME_FACE_SEL) {
|
||||||
BM_elem_select_set(bm, f, TRUE);
|
BM_elem_select_set(bm, f, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user