Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-03-12 17:58:03 +0300
committerJulian Eisel <julian@blender.org>2020-03-12 17:58:03 +0300
commitb86be9b2145458037fd0b17433b7af0efa7b6472 (patch)
treef333625555402992ebb35d258f93eda1130389e6 /source/blender/makesdna/DNA_lightprobe_types.h
parent00f83ec125207e90bf180b3eb7752d8cb6482a86 (diff)
parentcb6cec904fa14ce0ab10a2a53af5c936d56376cf (diff)
Merge branch 'temp-openxr-ghostxr' into temp-openxr-blenderside
Diffstat (limited to 'source/blender/makesdna/DNA_lightprobe_types.h')
-rw-r--r--source/blender/makesdna/DNA_lightprobe_types.h12
1 files changed, 12 insertions, 0 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),