fix flushing issue when using linked selection picking in editmode.

- existing selections that should be un-effected would get incorrectly flushed
This commit is contained in:
2012-02-10 06:26:16 +00:00
parent 3453ec8fae
commit 3aeb7b3150

View File

@@ -1797,20 +1797,9 @@ static int select_linked_pick_invoke(bContext *C, wmOperator *op, wmEvent *event
e = BMW_Begin(&walker, eed->v1);
for (; e; e=BMW_Step(&walker)) {
BM_Select(bm, e->v1, sel);
BM_Select(bm, e->v2, sel);
BM_Select(bm, e, sel);
}
BMW_End(&walker);
/* BMESH_TODO, see trunks 'select_linked_pick_invoke' this uses 'f1' flag and does its own flushing
* the problem with calling selectmode flush below is that it will select edges from parts
* of the mesh that didnt change, perhaps we should have selection flushing functions that only check
* tagged geometry.
* For now I dont think this is a showstopper - campbell */
/* now use vertex select flag to select rest */
EDBM_selectmode_flush_ex(em, SCE_SELECT_VERTEX);
}
WM_event_add_notifier(C, NC_GEOM|ND_SELECT, obedit);