diff options
author | Bastien Montagne <bastien@blender.org> | 2022-02-14 14:07:59 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-02-14 14:07:59 +0300 |
commit | c32d3a175de20ab8865cac5ff3c40adf503432f6 (patch) | |
tree | 782c202b45576cc53141c4a0302e5204319adffb /source/blender/blenkernel/intern | |
parent | 777953f36b58008678a2455ce484aa6b88df245d (diff) | |
parent | 3a9a37d6dccb0a981b1fad0cda977b4a445341a1 (diff) |
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/anim_sys.c | 10 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c index 6544ebd05df..4a522efc467 100644 --- a/source/blender/blenkernel/intern/anim_sys.c +++ b/source/blender/blenkernel/intern/anim_sys.c @@ -41,6 +41,7 @@ #include "BKE_fcurve.h" #include "BKE_global.h" #include "BKE_lib_id.h" +#include "BKE_lib_query.h" #include "BKE_main.h" #include "BKE_material.h" #include "BKE_nla.h" @@ -249,6 +250,15 @@ void BKE_keyingsets_copy(ListBase *newlist, const ListBase *list) } } +void BKE_keyingsets_foreach_id(LibraryForeachIDData *data, const ListBase *keyingsets) +{ + for (KeyingSet *ksn = keyingsets->first; ksn; ksn = ksn->next) { + for (KS_Path *kspn = ksn->paths.first; kspn; kspn = kspn->next) { + BKE_LIB_FOREACHID_PROCESS_ID(data, kspn->id, IDWALK_CB_NOP); + } + } +} + /* Freeing Tools --------------------------- */ void BKE_keyingset_free(KeyingSet *ks) diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 6d567bd050e..7827c40e2c2 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -800,6 +800,9 @@ static void scene_foreach_id(ID *id, LibraryForeachIDData *data) data, SEQ_for_each_callback(&scene->ed->seqbase, seq_foreach_member_id_cb, data)); } + BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL(data, + BKE_keyingsets_foreach_id(data, &scene->keyingsets)); + /* This pointer can be NULL during old files reading, better be safe than sorry. */ if (scene->master_collection != NULL) { BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL( |