Refactor: Add various DNA_*_enums.h and DNA_*_types.h files

* Move colorband and theme DNA to own headers
* Move some anim, curve, modifier and space enums to new headers
* Move data transfer enums to DNA
* Duplicate imbuf proxy and GPU backend enums

For a few reasons:
* Reduce number of includes in DNA headers
* Don't define enums used in DNA outside of DNA
* Move theme settings to separate header for userdef_default_theme.c
* Prepare for using default initializers in DNA headers. (#134531)

Pull Request: https://projects.blender.org/blender/blender/pulls/138831
This commit is contained in:
Brecht Van Lommel
2025-05-20 13:26:43 +02:00
committed by Brecht Van Lommel
parent b690e9d4db
commit f165c75e14
32 changed files with 2911 additions and 2674 deletions

View File

@@ -7,10 +7,9 @@
/* For constants. */
#include "BLI_math_constants.h"
#include "DNA_anim_types.h"
#include "DNA_curve_types.h"
#include "DNA_space_types.h"
#include "DNA_userdef_types.h"
#include "DNA_anim_enums.h"
#include "DNA_curve_enums.h"
#include "DNA_space_enums.h"
#include "BKE_blender_version.h"