Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/pbvh.c2
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;