From 392c23bdb9b81e56a834e6ee034173c382851c38 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 8 Dec 2017 16:06:32 +0100 Subject: Library remap: Fix issue remapping pointer of object coming from group[s base We can not store pointer to an object ion temporary variable here, since then pointer will not be updated in the base itself. This fixes missing modifiers on objects coming from dupli-group. --- source/blender/blenkernel/intern/library_query.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenkernel/intern/library_query.c') diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c index e25a354c8af..0bd1c5ff114 100644 --- a/source/blender/blenkernel/intern/library_query.c +++ b/source/blender/blenkernel/intern/library_query.c @@ -773,11 +773,11 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call case ID_GR: { Group *group = (Group *) id; - FOREACH_GROUP_OBJECT(group, object) + FOREACH_GROUP_BASE(group, base) { - CALLBACK_INVOKE(object, IDWALK_CB_USER_ONE); + CALLBACK_INVOKE(base->object, IDWALK_CB_USER_ONE); } - FOREACH_GROUP_OBJECT_END + FOREACH_GROUP_BASE_END break; } -- cgit v1.2.3