[Bf-blender-cvs] [978e2b6f98e] master: BKE_global: No longer read/write G_FILE_HISTORY
Campbell Barton
noreply at git.blender.org
Thu Jun 18 06:31:37 CEST 2020
Commit: 978e2b6f98ea93345a3cef041b814f599a15beeb
Author: Campbell Barton
Date: Thu Jun 18 12:56:46 2020 +1000
Branches: master
https://developer.blender.org/rB978e2b6f98ea93345a3cef041b814f599a15beeb
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.
===================================================================
M source/blender/blenkernel/BKE_global.h
===================================================================
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__)
More information about the Bf-blender-cvs
mailing list