Fix T98214: UV selection crash with wire edges

Regression in ffaaa0bcbf
which removed the NULL pointer check.
This commit is contained in:
Chris Blackbourn 2022-05-18 13:29:21 +12:00 committed by Campbell Barton
parent 35e73aa347
commit c38187393a
1 changed files with 3 additions and 0 deletions

View File

@ -653,6 +653,9 @@ void uvedit_uv_select_shared_vert(const Scene *scene,
e_first = e_iter = l->e;
do {
BMLoop *l_radial_iter = e_iter->l;
if (!l_radial_iter) {
continue; /* Skip wire edges with no loops. */
}
do {
if (l_radial_iter->v == l->v) {
if (uvedit_face_visible_test(scene, l_radial_iter->f)) {