diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-09-15 22:12:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-09-15 22:12:16 +0400 |
commit | 3a90f211d2cff5aa93bf0d52688685f9b7e92299 (patch) | |
tree | a873505ddc9cdd3891812c3f17b30147ab5f8f11 /source/blender/src/space.c | |
parent | b2a8199d4ba545631a992af6a540dc2f2da186eb (diff) |
new view option, SolidTex, to draw textures in solid mode.
In the view panel as well as the shortcut Shift+T
this works in editmode as well as object mode
giving results like this
http://members.optusnet.com.au/cjbarton/temp1.jpg
where before you could only see textures in textured draw type like this
http://members.optusnet.com.au/cjbarton/temp2.jpg
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r-- | source/blender/src/space.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 8997081919f..0bdd54615fb 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -2327,7 +2327,10 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) } break; case TKEY: - if(G.obedit){ + if(G.qual == LR_SHIFTKEY) { /* toggle texture in solid draw mode */ + G.vd->flag2 ^= V3D_SOLID_TEX; + allqueue(REDRAWVIEW3D, 0); + } else if(G.obedit){ if((G.qual & LR_CTRLKEY) && G.obedit->type==OB_MESH) { convert_to_triface(G.qual & LR_SHIFTKEY); allqueue(REDRAWVIEW3D, 0); |