A series of hide/reveil in editmode didn't result in identical selection
always, except in face mode. current method works in all modes, including
mixed (face+edge for example)
This commit is contained in:
Ton Roosendaal
2005-01-08 13:50:44 +00:00
parent 8b3eea1798
commit d56680bc38

View File

@@ -1304,21 +1304,21 @@ void reveal_mesh(void)
eve->f |= SELECT;
}
}
for(eed= em->edges.first; eed; eed= eed->next) {
if(eed->h & 1) {
eed->h &= ~1;
EM_select_edge(eed, 1);
if(G.scene->selectmode & SCE_SELECT_VERTEX);
else EM_select_edge(eed, 1);
}
}
for(efa= em->faces.first; efa; efa= efa->next) {
if(efa->h) {
efa->h= 0;
EM_select_face(efa, 1);
if(G.scene->selectmode & (SCE_SELECT_EDGE|SCE_SELECT_VERTEX));
else EM_select_face(efa, 1);
}
}
EM_fgon_flags(); // redo flags and indices for fgons
EM_selectmode_flush();