diff options
author | Ton Roosendaal <ton@blender.org> | 2013-05-23 20:01:25 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2013-05-23 20:01:25 +0400 |
commit | ec834f823469aebee0bd58dd6c72a6f1033f3a32 (patch) | |
tree | 196a9a54bf32378d8e45092fc579eb65f8a69e1e /source | |
parent | b6a4ea3d95b7a04c55432f417fb307e288080714 (diff) |
Bug fix, IRC report.
Mesh with very strange topology makes loop-select (ALT+select) crash.
Missing NULL check for do-while loop that can return NULL.
For Campbell: here's the file to check: http://www.pasteall.org/blend/21576
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_walkers_impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_walkers_impl.c b/source/blender/bmesh/intern/bmesh_walkers_impl.c index 5f5a3f9d5b4..495f1c9648b 100644 --- a/source/blender/bmesh/intern/bmesh_walkers_impl.c +++ b/source/blender/bmesh/intern/bmesh_walkers_impl.c @@ -648,7 +648,7 @@ static void *bmw_LoopWalker_step(BMWalker *walker) } while (true); } - if (owalk.is_single == false && bm_edge_is_single(l->e)) { + if (owalk.is_single == false && l && bm_edge_is_single(l->e)) { l = NULL; } |