* change active face behavior so that entering editmode will assign the first face as active when none is set. UnSetting the active face will also use the first face as active.
* missing countall when selecting linked
This commit is contained in:
@@ -1059,7 +1059,11 @@ void make_editMesh()
|
||||
EM_hide_reset();
|
||||
/* sets helper flags which arent saved */
|
||||
EM_fgon_flags();
|
||||
|
||||
|
||||
if (EM_get_actFace(0)==NULL) {
|
||||
EM_set_actFace(NULL); /* will use the first face, this is so we alwats have an active face */
|
||||
}
|
||||
|
||||
/* vertex coordinates change with cache edit, need to recalc */
|
||||
if(cacheedit)
|
||||
recalc_editnormals();
|
||||
|
||||
@@ -72,7 +72,12 @@ editmesh_lib: generic (no UI, no menus) operations/evaluators for editmesh data
|
||||
/* this replaces the active flag used in uv/face mode */
|
||||
void EM_set_actFace(EditFace *efa)
|
||||
{
|
||||
G.editMesh->act_face = efa;
|
||||
if (efa) {
|
||||
G.editMesh->act_face = efa;
|
||||
} else {
|
||||
/* True or NULL if we have no faces, so we always have an active face */
|
||||
G.editMesh->act_face = G.editMesh->faces.first;
|
||||
}
|
||||
}
|
||||
|
||||
EditFace * EM_get_actFace(int sloppy)
|
||||
|
||||
@@ -5505,6 +5505,7 @@ void selectlinks(int nr)
|
||||
allqueue(REDRAWDATASELECT, 0);
|
||||
allqueue(REDRAWOOPS, 0);
|
||||
BIF_undo_push("Select linked");
|
||||
countall();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user