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-06-05 21:20:54 +0300
committerJacques Lucke <jacques@blender.org>2020-06-05 21:34:59 +0300
commit4df20c058dd09ea9ae0593322ff5391fdc76611d (patch)
tree055a14ee9e912b4befc8c921b9dcec995826acb9 /source/blender/blenloader/intern
parent2ee95e91f77e95f81b66f0428e1db1e9c859d327 (diff)
Refactor: use new api in write_bone
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r--source/blender/blenloader/intern/writefile.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 5e78f0c1052..7961feb302b 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -3197,23 +3197,23 @@ static void write_screen(BlendWriter *writer, bScreen *screen, const void *id_ad
}
}
-static void write_bone(WriteData *wd, Bone *bone)
+static void write_bone(BlendWriter *writer, Bone *bone)
{
/* PATCH for upward compatibility after 2.37+ armature recode */
bone->size[0] = bone->size[1] = bone->size[2] = 1.0f;
/* Write this bone */
- writestruct(wd, DATA, Bone, 1, bone);
+ BLO_write_struct(writer, Bone, bone);
/* Write ID Properties -- and copy this comment EXACTLY for easy finding
* of library blocks that implement this.*/
if (bone->prop) {
- IDP_WriteProperty(bone->prop, wd);
+ IDP_WriteProperty_new_api(bone->prop, writer);
}
/* Write Children */
LISTBASE_FOREACH (Bone *, cbone, &bone->childbase) {
- write_bone(wd, cbone);
+ write_bone(writer, cbone);
}
}
@@ -3236,7 +3236,7 @@ static void write_armature(BlendWriter *writer, bArmature *arm, const void *id_a
/* Direct data */
LISTBASE_FOREACH (Bone *, bone, &arm->bonebase) {
- write_bone(writer->wd, bone);
+ write_bone(writer, bone);
}
}
}