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:
Johnny Matthews 2005-07-19 02:23:52 +00:00
parent 3181991e86
commit 8962195f21
1 changed files with 14 additions and 0 deletions

View File

@ -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);