diff options
Diffstat (limited to 'source/blender/blenlib/intern/pbvh.c')
-rw-r--r-- | source/blender/blenlib/intern/pbvh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/pbvh.c b/source/blender/blenlib/intern/pbvh.c index 676b6d4da40..0133017eb4d 100644 --- a/source/blender/blenlib/intern/pbvh.c +++ b/source/blender/blenlib/intern/pbvh.c @@ -634,6 +634,8 @@ static PBVHNode *pbvh_iter_next(PBVHIter *iter) iter->stacksize--; node= iter->stack[iter->stacksize].node; + /* on a mesh with no faces this can happen + * can remove this check if we know meshes have at least 1 face */ if(node==NULL) return NULL; |