diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-03-29 17:19:00 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-03-29 17:19:00 +0300 |
commit | 603aafc9dc82b18b9f1e70d6e025f3d593dc8622 (patch) | |
tree | e04daa8e1a91ab0a8981c35f7689e780ef8bb391 | |
parent | 93543e66954b1221c9ce6039718165ef4e2b7273 (diff) |
Fix missing handling of IDProps of nodetree's IO sockets.
-rw-r--r-- | source/blender/blenkernel/intern/library_query.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c index 8fec5046b1f..25a32d0a9b4 100644 --- a/source/blender/blenkernel/intern/library_query.c +++ b/source/blender/blenkernel/intern/library_query.c @@ -784,18 +784,24 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call { bNodeTree *ntree = (bNodeTree *) id; bNode *node; + bNodeSocket *sock; + CALLBACK_INVOKE(ntree->gpd, IDWALK_CB_USER); + for (node = ntree->nodes.first; node; node = node->next) { CALLBACK_INVOKE_ID(node->id, IDWALK_CB_USER); library_foreach_idproperty_ID_link(&data, node->prop, IDWALK_CB_USER); - - bNodeSocket *sock; for (sock = node->inputs.first; sock; sock = sock->next) library_foreach_idproperty_ID_link(&data, sock->prop, IDWALK_CB_USER); for (sock = node->outputs.first; sock; sock = sock->next) library_foreach_idproperty_ID_link(&data, sock->prop, IDWALK_CB_USER); } + + for (sock = ntree->inputs.first; sock; sock = sock->next) + library_foreach_idproperty_ID_link(&data, sock->prop, IDWALK_CB_USER); + for (sock = ntree->outputs.first; sock; sock = sock->next) + library_foreach_idproperty_ID_link(&data, sock->prop, IDWALK_CB_USER); break; } |