Fix for bug #2848 This flushes selection upward in subdivide based on select mode. So faces with all edges selected should now be selected as well.
This commit is contained in:
parent
3181991e86
commit
8962195f21
|
@ -2169,6 +2169,20 @@ void esubdivideflag(int flag, float rad, int beauty, int numcuts, int seltype)
|
|||
// that memory
|
||||
BLI_ghash_free(gh, NULL, (GHashValFreeFP)MEM_freeN);
|
||||
|
||||
EM_selectmode_flush();
|
||||
for(ef=em->faces.first;ef;ef = ef->next){
|
||||
if(ef->e4){
|
||||
if( (ef->e1->f & SELECT && ef->e2->f & SELECT) &&
|
||||
(ef->e3->f & SELECT && ef->e4->f & SELECT) ){
|
||||
ef->f |= SELECT;
|
||||
}
|
||||
} else {
|
||||
if( (ef->e1->f & SELECT && ef->e2->f & SELECT) && ef->e3->f & SELECT){
|
||||
ef->f |= SELECT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
recalc_editnormals();
|
||||
countall();
|
||||
allqueue(REDRAWVIEW3D, 0);
|
||||
|
|
Loading…
Reference in New Issue