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.
This commit is contained in:
2017-12-08 16:06:32 +01:00
parent 34522017de
commit 392c23bdb9

View File

@@ -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;
}