Blender Git Loki

Git Commits -> Revision 15822d9

February 13, 2017, 13:57 (GMT)
Refactor writefile handling of data-blocks.

Instead of calling a function looping over whole list of a given ID
type, make whole loop over Main in parent function, and call functions
writing a single datablock at a time.

This design is more in line with all other places in Blender where we
handle whole content of Main (including readfile.c), and much more easy
to extend and add e.g. some generic processing of IDs before/after
writing, etc.

From user point, there should be no change at all, only difference is
that data-block types won't be saved in same order as before (.blend
file specs enforces no order here, so this is not an issue, but it could
bug some third party users using other, simplified .blend file reader
maybe).

Reviewers: sergey

Differential Revision: https://developer.blender.org/D2510

Commit Details:

Full Hash: 15822d9d32aefc2b141a67568626932bf3467b76
Parent Commit: 9148ce9
Lines Changed: +1028, -1043

1 Modified Path:

/source/blender/blenloader/intern/writefile.c (+1028, -1043) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021