From cc61b21dff5e58031a165faf9f7c26a9e6032316 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 7 Dec 2018 10:41:57 -0200 Subject: Partial fix to T58917 - No valid cage The fix itself simply is to store the cage object as a pointer instead of a string/name. That said baking with or without cage is yielding very different results than in 2.7. --- source/blender/blenkernel/intern/library_query.c | 1 + 1 file changed, 1 insertion(+) (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 6a9c1c82ab1..a06be37f41d 100644 --- a/source/blender/blenkernel/intern/library_query.c +++ b/source/blender/blenkernel/intern/library_query.c @@ -407,6 +407,7 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call CALLBACK_INVOKE(scene->world, IDWALK_CB_USER); CALLBACK_INVOKE(scene->set, IDWALK_CB_NOP); CALLBACK_INVOKE(scene->clip, IDWALK_CB_USER); + CALLBACK_INVOKE(scene->r.bake.cage_object, IDWALK_CB_NOP); if (scene->nodetree) { /* nodetree **are owned by IDs**, treat them as mere sub-data and not real ID! */ library_foreach_ID_as_subdata_link((ID **)&scene->nodetree, callback, user_data, flag, &data); -- cgit v1.2.3