diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-26 14:07:02 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-26 14:16:50 +0300 |
commit | b061b5ae7a9933132a169c6b7248b8026fb8c170 (patch) | |
tree | f70ad20e4ed448ddf642010ccc5d0c3c40a7b62b /source | |
parent | bf9e88bfbebaf5c6228363560970fa526e779c8b (diff) |
Fix (unreported) libquery's IDLooper for constraints not handling correctly referenced ID pointers...
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/library_query.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c index 68e63c1ac92..d8825303219 100644 --- a/source/blender/blenkernel/intern/library_query.c +++ b/source/blender/blenkernel/intern/library_query.c @@ -123,10 +123,11 @@ static void library_foreach_modifiersForeachIDLink( } static void library_foreach_constraintObjectLooper(bConstraint *UNUSED(con), ID **id_pointer, - bool UNUSED(is_reference), void *user_data) + bool is_reference, void *user_data) { LibraryForeachIDData *data = (LibraryForeachIDData *) user_data; - FOREACH_CALLBACK_INVOKE_ID_PP(data->self_id, id_pointer, data->flag, data->callback, data->user_data, IDWALK_NOP); + const int cd_flag = is_reference ? IDWALK_USER : IDWALK_NOP; + FOREACH_CALLBACK_INVOKE_ID_PP(data->self_id, id_pointer, data->flag, data->callback, data->user_data, cd_flag); } static void library_foreach_particlesystemsObjectLooper( |