Blender Git Loki

Git Commits -> Revision 7954e67

Revision 7954e67 by Bastien Montagne (master)
February 6, 2020, 17:55 (GMT)
Readfile: refactor/factorize more handling of common ID data.

- Move handling of private ID data (nodetree and master_collection)
under generic ID code. This shortens code a bit, but mostly avoids having
to modify all type-specific callback functions if/when we have to add
generic processing to IDs there.

- Seriously factorize `expand_xxx` area, in the same way we were already
doing in `direct_link_xxx` and `lib_link_xxx` areas.

Note that this actually also fixes some bugs (at least, potential ones),
like e.g. missing call to expand_id() for our beloved 'private ID'
(nodetrees & co), in current master code...

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

Commit Details:

Full Hash: 7954e672c555037733b4ac298d558155d1862055
Parent Commit: 921d74d
Lines Changed: +161, -261

1 Modified Path:

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