Blender Git Commit Log

Git Commits -> Revision 98b8149

Revision 98b8149 by Bastien Montagne (master)
March 17, 2017, 09:02 (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, campbellbarton

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

Commit Details:

Full Hash: 98b81493f3451f016fc409648bbe7c8c9e16940b
Parent Commit: e361adb
Lines Changed: +1032, -1043

1 Modified Path:

/source/blender/blenloader/intern/writefile.c (+1032, -1043) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021