From 978e2b6f98ea93345a3cef041b814f599a15beeb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 18 Jun 2020 12:56:46 +1000 Subject: BKE_global: No longer read/write G_FILE_HISTORY This is a runtime only flag which doesn't make sense to store in the file. --- source/blender/blenkernel/BKE_global.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/blender/blenkernel/BKE_global.h b/source/blender/blenkernel/BKE_global.h index f6cae6d8a9c..a1871d22da7 100644 --- a/source/blender/blenkernel/BKE_global.h +++ b/source/blender/blenkernel/BKE_global.h @@ -188,8 +188,12 @@ enum { /* #define G_FILE_GLSL_NO_ENV_LIGHTING (1 << 28) */ /* deprecated */ }; -/** Don't overwrite these flags when reading a file. */ -#define G_FILE_FLAG_ALL_RUNTIME (G_FILE_NO_UI | G_FILE_RELATIVE_REMAP | G_FILE_SAVE_COPY) +/** + * Run-time only #G.fileflags which are never read or written to/from Blend files. + * This means we can change the values without worrying about do-versions. + */ +#define G_FILE_FLAG_ALL_RUNTIME \ + (G_FILE_NO_UI | G_FILE_RELATIVE_REMAP | G_FILE_HISTORY | G_FILE_SAVE_COPY) /** ENDIAN_ORDER: indicates what endianness the platform where the file was written had. */ #if !defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__) -- cgit v1.2.3