Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-07-16 15:48:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-07-16 15:48:55 +0400
commit3ae64f67e1e8e94953303ec277b7a239eedcded3 (patch)
tree6020055c1050a462586bd0b78bd0301894e6ea62 /source/blender/src
parent3b8ed8910a74c72d16e76f10e2e62693bb0cc6d2 (diff)
* 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
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/editmesh.c6
-rw-r--r--source/blender/src/editmesh_lib.c7
-rw-r--r--source/blender/src/editobject.c1
3 files changed, 12 insertions, 2 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c
index 9eef61e11f9..2b12b16a299 100644
--- a/source/blender/src/editmesh.c
+++ b/source/blender/src/editmesh.c
@@ -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();
diff --git a/source/blender/src/editmesh_lib.c b/source/blender/src/editmesh_lib.c
index 4d9679b6b8a..2b0b1e110c6 100644
--- a/source/blender/src/editmesh_lib.c
+++ b/source/blender/src/editmesh_lib.c
@@ -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)
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c
index 2e5785eaab8..6af4f47ed11 100644
--- a/source/blender/src/editobject.c
+++ b/source/blender/src/editobject.c
@@ -5505,6 +5505,7 @@ void selectlinks(int nr)
allqueue(REDRAWDATASELECT, 0);
allqueue(REDRAWOOPS, 0);
BIF_undo_push("Select linked");
+ countall();
}
}