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/src/toets.c
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/src/toets.c')
-rw-r--r--source/blender/src/toets.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c
index f470e0a43e8..b043bc85370 100644
--- a/source/blender/src/toets.c
+++ b/source/blender/src/toets.c
@@ -138,6 +138,10 @@ void persptoetsen(unsigned short event)
}
}
else if((G.qual & (LR_SHIFTKEY | LR_CTRLKEY)) && (event != PAD0)) {
+
+ /* indicate that this view is inverted */
+ G.vd->flag2 |= V3D_OPP_DIRECTION_NAME;
+
if(event==PAD0) {
/* G.vd->persp= 3; */
}
@@ -197,6 +201,8 @@ void persptoetsen(unsigned short event)
}
}
else {
+ /* indicate that this view is not inverted */
+ G.vd->flag2 &= ~V3D_OPP_DIRECTION_NAME;
if(event==PAD7) {
G.vd->viewquat[0]= 1.0;