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
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-03-30 22:36:09 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-03-30 22:36:09 +0300
commitf7fc55867a3e7d68a16bfa503a9651310aadd380 (patch)
tree41f67bc68e0ebe0ff286d94423e9572ec4a5b4a8 /source
parentcb1994805373c627c4aaf803dc9bffa0a7d24fcb (diff)
libquery foreach looper: in recursive case, do not bother with NULL id pointers!
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/library_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c
index c9b7b8ef12b..d29d2191602 100644
--- a/source/blender/blenkernel/intern/library_query.c
+++ b/source/blender/blenkernel/intern/library_query.c
@@ -88,7 +88,7 @@
if (_flag & IDWALK_READONLY) { \
BLI_assert(*(id_pp) == old_id); \
} \
- if (_flag & IDWALK_RECURSE) { \
+ if (old_id && (_flag & IDWALK_RECURSE)) { \
if (!BLI_gset_haskey((_data)->ids_handled, old_id)) { \
BLI_gset_add((_data)->ids_handled, old_id); \
if (!(callback_return & IDWALK_RET_STOP_RECURSION)) { \