diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-02-05 18:18:17 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-02-05 18:18:17 +0300 |
commit | b841167ee35a483b34db343be7ac3291f162711b (patch) | |
tree | 3decd5f5e46e8dae3fa204ea186252dd1037d0e4 /source/blender/makesdna/DNA_scene_types.h | |
parent | c35d6b1854474ec02888f8812041651bdeb5145e (diff) |
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
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index a645a03d1ac..667511f6514 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -2155,6 +2155,7 @@ typedef enum eVGroupSelect { #define SCE_NLA_EDIT_ON (1 << 2) #define SCE_FRAME_DROP (1 << 3) #define SCE_KEYS_NO_SELONLY (1 << 4) +#define SCE_READFILE_LIBLINK_NEED_SETSCENE_CHECK (1 << 5) /* return flag BKE_scene_base_iter_next functions */ /* #define F_ERROR -1 */ /* UNUSED */ |