Blender Git Loki

Git Commits -> Revision b841167

Revision b841167 by Bastien Montagne (master)
February 5, 2020, 15:18 (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.

Reviewed By: brecht

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

Commit Details:

Full Hash: b841167ee35a483b34db343be7ac3291f162711b
Parent Commit: c35d6b1
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