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:
authorMatt Ebb <matt@mke3.net>2006-04-25 16:26:46 +0400
committerMatt Ebb <matt@mke3.net>2006-04-25 16:26:46 +0400
commit2bbfd3a8014c560fd78b97506a1673d601dcc49e (patch)
treee7aa831176ef6cd3578ea2d5dd41c7d64217d6f7 /source/blender/makesdna/DNA_view3d_types.h
parent5c02b01395b347694e841f3aaa06d44b736b3726 (diff)
* patch #3876: Rotating view icon
submitted by Davide Vercelli This replaces (as a user preference) the static icon shown in the bottom-left of the 3D View with a small rotating axis that updates live in all ortho/perspective modes I made several modifications to the original patch. In the patch, it displayed the axis on top of the 'object info' text since when floating panels are minimised, they sit in the bottom corner and cover the axis up. This annoyance is not limited to the axis, it also covers the frame number and info text, which can be frustrating. Sending them to the bottom is not that useful either, since it's quicker (with esc) and just as much movement to close and re-open them again. I decided to solve this problem at the cause: Now when using the disclosure triangle on floating panels, they 'minimise in place' rather than going to the bottom. User preferences are in the 'View & controls' section to: - Display either the 3D axis or the old icon - The size of the axis - the brightness of the axis (colours are taken from grid theme settings) * patch #3801: Option to show view direction in 3D View submitted by Daniele Fornaciari Simple one, just adds an user pref to show the name of the view's direction as text in the top left corner.
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index e793ce2495e..d095e846927 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -102,7 +102,9 @@ typedef struct View3D {
short drawtype;
short localview;
int lay, layact;
- short scenelock, around, camzoom, flag;
+ short scenelock, around, camzoom;
+
+ short pad1;
float lens, grid, gridview, pixsize, near, far;
float camdx, camdy; /* camera view offsets, 1.0 = viewplane moves entire width/height */
@@ -118,12 +120,18 @@ typedef struct View3D {
/* user defined clipping planes */
float clip[4][4];
+
struct BoundBox *clipbb;
/* afterdraw, for xray & transparent */
struct ListBase afterdraw;
/* drawflags, denoting state */
- short zbuf, transp, xray, pad2;
+ short zbuf, transp, xray;
+
+ short flag, flag2;
+
+ short pad2[3];
+
} View3D;
/* View3D->flag (short) */
@@ -145,6 +153,9 @@ typedef struct View3D {
#define V3D_CLIPPING 16384
#define V3D_DRAW_CENTERS 32768
+/* View3d->flag2 (short) */
+#define V3D_OPP_DIRECTION_NAME 1
+
/* View3D->around */
#define V3D_CENTRE 0
#define V3D_CENTROID 3