diff options
author | Chris Blackbourn <chrisbblend@gmail.com> | 2022-05-18 04:29:21 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-18 05:15:56 +0300 |
commit | c38187393acbe4dc07a51a21eafa489e80380cf6 (patch) | |
tree | 8634372f4257e36b50ff84a2ffdb15a8ad43dc58 /source/blender/editors | |
parent | 35e73aa3472ab8c1e28feec1829fae79967322b5 (diff) |
Fix T98214: UV selection crash with wire edges
Regression in ffaaa0bcbf477c30cf3665b9330bbbb767397169
which removed the NULL pointer check.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_select.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/uvedit/uvedit_select.c b/source/blender/editors/uvedit/uvedit_select.c index 2c1cdb1d93e..6405d2df66a 100644 --- a/source/blender/editors/uvedit/uvedit_select.c +++ b/source/blender/editors/uvedit/uvedit_select.c @@ -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)) { |