libquery foreach looper: in recursive case, do not bother with NULL id pointers!

This commit is contained in:
Bastien Montagne 2016-03-30 21:36:09 +02:00
parent cb19948053
commit f7fc55867a

@ -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)) { \