Blender Git Loki

Git Commits -> Revision 9829a3c

February 1, 2020, 18:43 (GMT)
Refactor readfile's liblink code.

Liblink specific ID type function was so far running a loop over all IDs
of relevant type, unlike almost any other 'ID-callback-like' functions
in Blender, which usually let the looping controll to calling code.

The latter approach is more convinient when one want to add generic
(i.e. type-agnostic) code, since it typically only has to change code in
one place (caller function) instead of tens of places (all the callback
functions).

This commit also changes/sanitizes a few things that had nothing to do
in main liblink code, like mesh conversion from tessfaces to polys
(which can be done in after-linking versionning code), or scenes' cycles
detection/check regarding background 'set' scenes.

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

Commit Details:

Full Hash: 9829a3c496743e0e6a557c9283f8c2cf2d9c1aa2
Parent Commit: f051d47
Lines Changed: +775, -1022

3 Modified Paths:

/source/blender/blenloader/intern/readfile.c (+738, -1010) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+36, -12) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021