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 22:44:14 +0300
committerJacques Lucke <jacques@blender.org>2020-06-05 22:55:45 +0300
commit60b8db587f655976752f92a59f9b12db04e107a6 (patch)
treee3b89e42065dfdd679da6a4dacc056a3c038eac7 /source/blender/blenloader/intern
parentf0047e6754de30b4c458c0cec476cfb2915d75fd (diff)
Blenloader: new write_struct_at_address api functions
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r--source/blender/blenloader/intern/writefile.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index cca560f3890..1498461b728 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -4541,6 +4541,14 @@ void BLO_write_struct_by_id(BlendWriter *writer, int struct_id, const void *data
writestruct_nr(writer->wd, DATA, struct_id, 1, data_ptr);
}
+void BLO_write_struct_at_address_by_id(BlendWriter *writer,
+ int struct_id,
+ const void *address,
+ const void *data_ptr)
+{
+ writestruct_at_address_nr(writer->wd, DATA, struct_id, 1, address, data_ptr);
+}
+
void BLO_write_struct_array_by_id(BlendWriter *writer,
int struct_id,
int array_size,
@@ -4549,6 +4557,12 @@ void BLO_write_struct_array_by_id(BlendWriter *writer,
writestruct_nr(writer->wd, DATA, struct_id, array_size, data_ptr);
}
+void BLO_write_struct_array_at_address_by_id(
+ BlendWriter *writer, int struct_id, int array_size, const void *address, const void *data_ptr)
+{
+ writestruct_at_address_nr(writer->wd, DATA, struct_id, array_size, address, data_ptr);
+}
+
void BLO_write_struct_list_by_id(BlendWriter *writer, int struct_id, ListBase *list)
{
writelist_nr(writer->wd, DATA, struct_id, list);