[Bf-blender-cvs] [392c23bdb9b] blender2.8: Library remap: Fix issue remapping pointer of object coming from group[s base

Sergey Sharybin noreply at git.blender.org
Fri Dec 8 16:08:04 CET 2017


Commit: 392c23bdb9b81e56a834e6ee034173c382851c38
Author: Sergey Sharybin
Date:   Fri Dec 8 16:06:32 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB392c23bdb9b81e56a834e6ee034173c382851c38

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.

===================================================================

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



More information about the Bf-blender-cvs mailing list