diff options
author | Alexander Ewering <blender@instinctive.de> | 2004-07-15 17:31:18 +0400 |
---|---|---|
committer | Alexander Ewering <blender@instinctive.de> | 2004-07-15 17:31:18 +0400 |
commit | f25b0df75136aff38b7d4f46b1e8230b8d50c5f3 (patch) | |
tree | 7ab26a56c3a7dab5fc9a8d281cea1efba3cbe376 /source/blender/src/drawview.c | |
parent | 3dbd149de21b2416b60e3ced129885a940aba3bd (diff) |
Commit for the 4 aforementioned "features":
- "Global Pivot": Maintains a global Pivot and Align mode setting for
all 3d views when enabled, instead of seperate settings per 3d view
- "Auto Perspective": Switch to ortho mode automatically on 1/3/7, and
to Perspective when the view is rotated with the mouse
- "Align mode": As suggested on the list, when enabled, transformations
on several objects only transform their locations, not their sizes or
rotations.
- Grid dotted when not 1:1
***ATTENTION***! The User Interface parts of these features have not been
committed, as I work on my own modified UI here. The three features need
toggle buttons to turn them on and off.
I used the following 3 buttons (first two features are in userprefs,
third as a 3d view setting):
uiDefButBitS(block, TOG, USER_AUTOPERSP, B_DRAWINFO, "Auto Persp",
(xpos+edgespace+(3*medprefbut)+(3*midspace)+smallprefbut+2),y3+10,smallprefbut,buth,
&(U.uiflag), 0, 0, 0, 0,
"Automatically switch between orthographic and perspective");
uiDefButBitS(block, TOG, USER_LOCKAROUND, B_DRAWINFO, "Global Pivot",
(xpos+edgespace+(4*midspace)+(4*medprefbut)),y3+10,smallprefbut,buth,
&(U.uiflag), 0, 0, 0, 0,
"Use global pivot setting for all 3d views");
uiDefIconButS(block, TOG|BIT|10, B_AROUND, ICON_ALIGN,
xco+=XIC,0,XIC,YIC,
&G.vd->flag, 0, 0, 0, 0, "Translate only (align)");
Someone needs to add these to the interface in an appropriate manner!
Thanks.
Diffstat (limited to 'source/blender/src/drawview.c')
-rw-r--r-- | source/blender/src/drawview.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c index 6a0ef9a11b5..e882a1d09c0 100644 --- a/source/blender/src/drawview.c +++ b/source/blender/src/drawview.c @@ -535,6 +535,7 @@ static void drawgrid(void) /* check zoom out */ BIF_ThemeColor(TH_GRID); persp(PERSP_WIN); + setlinestyle(3); if(dx<6.0) { dx*= 10.0; @@ -585,13 +586,16 @@ static void drawgrid(void) else { BIF_ThemeColorBlend(TH_BACK, TH_GRID, dx/60.0); drawgrid_draw(wx, wy, x, y, dx); - BIF_ThemeColor(TH_GRID); - drawgrid_draw(wx, wy, x, y, dx*10); + BIF_ThemeColor(TH_GRID); + setlinestyle(0); + drawgrid_draw(wx, wy, x, y, dx*10); /* 1:1 */ } } else { BIF_ThemeColorBlend(TH_BACK, TH_GRID, dx/60.0); - drawgrid_draw(wx, wy, x, y, dx); + setlinestyle(0); + drawgrid_draw(wx, wy, x, y, dx); /* 1:1 */ + setlinestyle(3); BIF_ThemeColor(TH_GRID); drawgrid_draw(wx, wy, x, y, dx*10); } |