diff options
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_lightprobe_types.h | 12 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_scene_defaults.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 3 |
3 files changed, 15 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_lightprobe_types.h b/source/blender/makesdna/DNA_lightprobe_types.h index 6ffdd60a094..d9cc549229d 100644 --- a/source/blender/makesdna/DNA_lightprobe_types.h +++ b/source/blender/makesdna/DNA_lightprobe_types.h @@ -160,6 +160,10 @@ typedef struct LightCacheTexture { typedef struct LightCache { int flag; + /** Version number to know if the cache data is compatible with this version of blender. */ + int version; + /** Type of data this cache contains. */ + int type; /* only a single cache for now */ /** Number of probes to use for rendering. */ int cube_len, grid_len; @@ -181,6 +185,14 @@ typedef struct LightCache { LightGridCache *grid_data; } LightCache; +/* Bump the version number for lightcache data structure changes. */ +#define LIGHTCACHE_STATIC_VERSION 1 + +/* LightCache->type */ +enum { + LIGHTCACHE_TYPE_STATIC = 0, +}; + /* LightCache->flag */ enum { LIGHTCACHE_BAKED = (1 << 0), diff --git a/source/blender/makesdna/DNA_scene_defaults.h b/source/blender/makesdna/DNA_scene_defaults.h index db3566710b4..4b6f079aa28 100644 --- a/source/blender/makesdna/DNA_scene_defaults.h +++ b/source/blender/makesdna/DNA_scene_defaults.h @@ -224,7 +224,7 @@ .shadow_cube_size = 512, \ .shadow_cascade_size = 1024, \ \ - .light_cache = NULL, \ + .light_cache_data = NULL, \ .light_threshold = 0.01f, \ \ .overscan = 3.0f, \ diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 5759b237f83..aac976fbabd 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -1633,7 +1633,8 @@ typedef struct SceneEEVEE { int shadow_cube_size; int shadow_cascade_size; - struct LightCache *light_cache; + struct LightCache *light_cache DNA_DEPRECATED; + struct LightCache *light_cache_data; char light_cache_info[64]; float overscan; |