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>2018-08-01 01:08:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-01 01:08:59 +0300
commite8d58080df07d4b7d9372bfca0dd54ea2817394a (patch)
treebcae34c1a59c6c47b21592f9bf1fd4b7d3eb0f80 /source/blender/makesdna/DNA_view3d_types.h
parentd5724bfaa760801377db4d5cc4071aef42491439 (diff)
DNA: remove View3D.flag3
Having 'flag, flag2, flag3' is getting out of hand especially when we support increasing the size of types. Make flag2 into an int. Note, this looses the 'show world' option, but it's not such an important setting.
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index 845e7ab3658..1b3eef0f3ec 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -182,10 +182,11 @@ typedef struct View3D {
/**
* The drawing mode for the 3d display. Set to OB_BOUNDBOX, OB_WIRE, OB_SOLID,
* OB_TEXTURE, OB_MATERIAL or OB_RENDER */
- short drawtype;
- short ob_centre_cursor; /* optional bool for 3d cursor to define center */
+ char drawtype;
+ char ob_centre_cursor; /* optional bool for 3d cursor to define center */
short scenelock, around;
- short flag, flag2;
+ short flag;
+ int flag2;
float lens, grid;
float near, far;
@@ -201,7 +202,7 @@ typedef struct View3D {
/* transform widget info */
char twtype, twmode, twflag;
- short flag3;
+ short _pad1;
/* afterdraw, for xray & transparent */
struct ListBase afterdraw_transp;
@@ -297,7 +298,7 @@ typedef struct View3D {
#define RV3D_VIEW_IS_AXIS(view) \
(((view) >= RV3D_VIEW_FRONT) && ((view) <= RV3D_VIEW_BOTTOM))
-/* View3d->flag2 (short) */
+/* View3d->flag2 (int) */
#define V3D_RENDER_OVERRIDE (1 << 2)
#define V3D_SOLID_TEX (1 << 3)
#define V3D_SHOW_GPENCIL (1 << 4)
@@ -312,11 +313,9 @@ typedef struct View3D {
#define V3D_SHOW_SOLID_MATCAP (1 << 13) /* runtime flag */
#define V3D_OCCLUDE_WIRE (1 << 14)
#define V3D_SHADELESS_TEX (1 << 15)
+#define V3D_SHOW_WORLD (1 << 16)
-/* View3d->flag3 (short) */
-#define V3D_SHOW_WORLD (1 << 0)
-
/* View3D->around */
enum {
/* center of the bounding box */