Blender Git Loki

Git Commits -> Revision 3042994

Revision 3042994 by Bastien Montagne (master)
September 23, 2021, 09:01 (GMT)
Link/Append: Refactor flags.

Flags controlling link/append code are split between two enums, one in
`DNA_space_types.h` and one in `BLO_readfile.h`.

This commit:
- Moves flags exclusively used in WM and BLO code to `eBLOLibLinkFlags`
in `BLO_readfile.h`. Flags in `eFileSel_Params_Flag` from
`DNA_space_types.h` are now only the ones effectively used by the
file browser editor code too.
- Fixes some internal utils in `readfile.c` still taking `short` flag
parameter instead of proper `int` one.

NOTE: there are a few other flags that could probably be moved to
`eBLOLibLinkFlags` (at the very least `FILE_LINK`, probably also
`FILE_AUTOSELECT` and `FILE_ACTIVE_COLLECTION`), since those are not
effectively used by the file browser, and control linking/appending
behavior, not filebrowser behavior.

However for now think it's safer to not touch that.

Commit Details:

Full Hash: 3042994c91667f9c8a1ecadc11e69c012c33d581
Parent Commit: 12924ed
Lines Changed: +53, -27

6 Modified Paths:

/source/blender/blenloader/BLO_readfile.h (+8, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+6, -6) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+2, -2) (Diff)
/source/blender/blenloader/intern/versioning_300.c (+19, -0) (Diff)
/source/blender/makesdna/DNA_space_types.h (+4, -4) (Diff)
/source/blender/windowmanager/intern/wm_files_link.c (+14, -15) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021