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:
authorCampbell Barton <ideasman42@gmail.com>2012-12-17 09:38:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-17 09:38:50 +0400
commit18cb2d208c80c9abf884e51c9e7c6f822c811190 (patch)
tree221cb7d02b64a24eb0725097ec630839736bfb40 /source/blender/blenkernel/BKE_main.h
parent9ac713bdb577116f4af0ef5250efddf82f93cf69 (diff)
code cleanup: use 'const float *' when getting the 3d cursor and not editing it.
Diffstat (limited to 'source/blender/blenkernel/BKE_main.h')
-rw-r--r--source/blender/blenkernel/BKE_main.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_main.h b/source/blender/blenkernel/BKE_main.h
index b49c5fda475..da0cba422c3 100644
--- a/source/blender/blenkernel/BKE_main.h
+++ b/source/blender/blenkernel/BKE_main.h
@@ -51,7 +51,7 @@ struct Library;
typedef struct Main {
struct Main *next, *prev;
char name[1024]; /* 1024 = FILE_MAX */
- short versionfile, subversionfile;
+ short versionfile, subversionfile; /* see BLENDER_VERSION, BLENDER_SUBVERSION */
short minversionfile, minsubversionfile;
int revision; /* svn revision of binary that saved file */
short recovered; /* indicate the main->name (file) is the recovered one */
@@ -92,6 +92,8 @@ typedef struct Main {
char id_tag_update[256];
} Main;
+#define MAIN_VERSION_ATLEAST(main, ver, subver) \
+ ((main)->versionfile >= (ver) || (main->versionfile == (ver) && (main)->subversionfile >= (subver)))
#ifdef __cplusplus
}