Fix #19426: loop select with occlude background geometry did not

work after subdivide operator, needed a check for valid backbuf.
This commit is contained in:
Brecht Van Lommel
2009-09-21 17:32:25 +00:00
parent fe27bb6dd4
commit c8a977db78

View File

@@ -2033,6 +2033,9 @@ static void mouse_mesh_loop(bContext *C, short mval[2], short extend, short ring
vc.mval[0]= mval[0];
vc.mval[1]= mval[1];
em= vc.em;
/* no afterqueue (yet), so we check it now, otherwise the em_xxxofs indices are bad */
view3d_validate_backbuf(&vc);
eed= findnearestedge(&vc, &dist);
if(eed) {
@@ -2110,6 +2113,9 @@ static void mouse_mesh_shortest_path(bContext *C, short mval[2])
vc.mval[1]= mval[1];
em= vc.em;
/* no afterqueue (yet), so we check it now, otherwise the em_xxxofs indices are bad */
view3d_validate_backbuf(&vc);
eed= findnearestedge(&vc, &dist);
if(eed) {
Mesh *me= vc.obedit->data;