diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-08 18:06:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-08 18:07:25 +0300 |
commit | 392c23bdb9b81e56a834e6ee034173c382851c38 (patch) | |
tree | ed39fcf157e2927ba5d74fc5b9e6e58d650646f6 /source/blender | |
parent | 34522017de22524243eefe718a57478e87cc4fcc (diff) |
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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/library_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |