diff options
author | Matt Ebb <matt@mke3.net> | 2006-04-25 16:26:46 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2006-04-25 16:26:46 +0400 |
commit | 2bbfd3a8014c560fd78b97506a1673d601dcc49e (patch) | |
tree | e7aa831176ef6cd3578ea2d5dd41c7d64217d6f7 /source/blender/src/usiblender.c | |
parent | 5c02b01395b347694e841f3aaa06d44b736b3726 (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/usiblender.c')
-rw-r--r-- | source/blender/src/usiblender.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index 265919a4937..4c660a5c4a6 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -292,6 +292,15 @@ static void init_userdef_file(void) SETCOL(btheme->tv3d.group_active, 0x66, 0xFF, 0x66, 255); } } + + /* set defaults for 3D View rotating axis indicator */ + /* since size can't be set to 0, this indicates it's not saved in .B.blend */ + if (U.rvisize == 0) { + U.rvisize = 18; + U.rvibright = 2; + U.uiflag |= USER_SHOW_ROTVIEWICON; + } + } if (U.undosteps==0) U.undosteps=32; |