diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-30 22:36:09 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-30 22:36:09 +0300 |
commit | f7fc55867a3e7d68a16bfa503a9651310aadd380 (patch) | |
tree | 41f67bc68e0ebe0ff286d94423e9572ec4a5b4a8 /source/blender/blenkernel | |
parent | cb1994805373c627c4aaf803dc9bffa0a7d24fcb (diff) |
libquery foreach looper: in recursive case, do not bother with NULL id pointers!
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/library_query.c | 2 |
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)) { \ |