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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user