fix merge bug, this should fix this issue for now, but might need further work later.

This commit is contained in:
Joseph Eagar
2009-09-04 01:28:06 +00:00
parent 9bb0b42b9b
commit dae0b7a4a2
4 changed files with 11 additions and 1 deletions

View File

@@ -22,7 +22,7 @@
*
* The Original Code is: none of this file.
*
* Contributor(s): Daniel Dunbar
* Contributor(s): Daniel Dunbar, Joseph Eagar
*
* ***** END GPL LICENSE BLOCK *****
* A general (pointer -> pointer) hash table ADT

View File

@@ -39,5 +39,6 @@ void BM_editselection_plane(BMesh *bm, float *plane, BMEditSelection *ese);
void BM_remove_selection(BMesh *bm, void *data);
void BM_store_selection(BMesh *bm, void *data);
void BM_validate_selections(BMesh *bm);
void BM_clear_selection_history(BMesh *em);
#endif

View File

@@ -502,6 +502,12 @@ void BM_remove_selection(BMesh *em, void *data)
}
}
void BM_clear_selection_history(BMesh *em)
{
BLI_freelistN(&em->selected);
em->selected.first = em->selected.last = NULL;
}
void BM_store_selection(BMesh *em, void *data)
{
BMEditSelection *ese;

View File

@@ -466,6 +466,9 @@ void EDBM_clear_flag_all(BMEditMesh *em, int flag)
BMHeader *ele;
int i, type;
if (flag & BM_SELECT)
BM_clear_selection_history(em->bm);
for (i=0; i<3; i++) {
switch (i) {
case 0: