Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-09-10 12:17:35 +0300
committerJacques Lucke <jacques@blender.org>2020-09-10 12:17:51 +0300
commitb443f9b54c38570ca6b7cdc25a8eb1f3c97b735e (patch)
tree76f0a77d391155225377b204ea02bfb7f930eedc /source/blender/blenloader/intern/writefile.c
parent60b2bb3a1cc24f25f27c5be0f000344703071694 (diff)
Refactor: move keyingset .blend I/O to blenkernel
Ref T76372
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r--source/blender/blenloader/intern/writefile.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 429045222f0..daad7f0e05e 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -153,6 +153,7 @@
#include "BKE_action.h"
#include "BKE_anim_data.h"
+#include "BKE_animsys.h"
#include "BKE_armature.h"
#include "BKE_blender_version.h"
#include "BKE_bpath.h"
@@ -660,24 +661,6 @@ static void writelist_id(WriteData *wd, int filecode, const char *structname, co
* These functions are used by blender's .blend system for file saving/loading.
* \{ */
-static void write_keyingsets(BlendWriter *writer, ListBase *list)
-{
- LISTBASE_FOREACH (KeyingSet *, ks, list) {
- /* KeyingSet */
- BLO_write_struct(writer, KeyingSet, ks);
-
- /* Paths */
- LISTBASE_FOREACH (KS_Path *, ksp, &ks->paths) {
- /* Path */
- BLO_write_struct(writer, KS_Path, ksp);
-
- if (ksp->rna_path) {
- BLO_write_string(writer, ksp->rna_path);
- }
- }
- }
-}
-
static void write_node_socket_default_value(BlendWriter *writer, bNodeSocket *sock)
{
if (sock->default_value == NULL) {
@@ -2018,7 +2001,7 @@ static void write_scene(BlendWriter *writer, Scene *sce, const void *id_address)
if (sce->adt) {
BKE_animdata_blend_write(writer, sce->adt);
}
- write_keyingsets(writer, &sce->keyingsets);
+ BKE_keyingsets_blend_write(writer, &sce->keyingsets);
/* direct data */
ToolSettings *tos = sce->toolsettings;