Revision: 15600
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15600
Author: campbellbarton
Date: 2008-07-16 13:48:55 +0200 (Wed, 16 Jul 2008)
Log Message:
-----------
* 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
Modified Paths:
--------------
trunk/blender/source/blender/src/editmesh.c
trunk/blender/source/blender/src/editmesh_lib.c
trunk/blender/source/blender/src/editobject.c
Modified: trunk/blender/source/blender/src/editmesh.c
===================================================================
--- trunk/blender/source/blender/src/editmesh.c 2008-07-16 10:33:48 UTC (rev
15599)
+++ trunk/blender/source/blender/src/editmesh.c 2008-07-16 11:48:55 UTC (rev
15600)
@@ -1059,7 +1059,11 @@
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();
Modified: trunk/blender/source/blender/src/editmesh_lib.c
===================================================================
--- trunk/blender/source/blender/src/editmesh_lib.c 2008-07-16 10:33:48 UTC
(rev 15599)
+++ trunk/blender/source/blender/src/editmesh_lib.c 2008-07-16 11:48:55 UTC
(rev 15600)
@@ -72,7 +72,12 @@
/* 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)
Modified: trunk/blender/source/blender/src/editobject.c
===================================================================
--- trunk/blender/source/blender/src/editobject.c 2008-07-16 10:33:48 UTC
(rev 15599)
+++ trunk/blender/source/blender/src/editobject.c 2008-07-16 11:48:55 UTC
(rev 15600)
@@ -5505,6 +5505,7 @@
allqueue(REDRAWDATASELECT, 0);
allqueue(REDRAWOOPS, 0);
BIF_undo_push("Select linked");
+ countall();
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs