diff options
author | Bastien Montagne <mont29> | 2022-02-22 13:53:02 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-02-22 13:53:02 +0300 |
commit | ff059210992621ca5e3c8e59152b67d711888ed2 (patch) | |
tree | 5cad515439c93341c5c3dd50f6e2120ddd9a7d1b | |
parent | 4f16dad6b33fc9aaf8f7a3829d96447bcd954311 (diff) |
Fix T95601: Missing handling of keyingsets ID pointers in lib_query/foreach_id code
Fix T95601: Missing handling of keyingsets ID pointers in lib_query/foreach_id code.
This will have to be backported to 2.93 and possibly 2.83 if possible.
-rw-r--r-- | source/blender/blenkernel/intern/lib_query.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/lib_query.c b/source/blender/blenkernel/intern/lib_query.c index a836abc9242..f759bddb6c4 100644 --- a/source/blender/blenkernel/intern/lib_query.c +++ b/source/blender/blenkernel/intern/lib_query.c @@ -664,6 +664,12 @@ static void library_foreach_ID_link(Main *bmain, SEQ_END; } + for (KeyingSet *ksn = scene->keyingsets.first; ksn; ksn = ksn->next) { + for (KS_Path *kspn = ksn->paths.first; kspn; kspn = kspn->next) { + CALLBACK_INVOKE_ID(kspn->id, IDWALK_CB_NOP); + } + } + /* This pointer can be NULL during old files reading, better be safe than sorry. */ if (scene->master_collection != NULL) { library_foreach_collection(&data, scene->master_collection); |