diff options
author | Ton Roosendaal <ton@blender.org> | 2004-09-25 17:42:31 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-09-25 17:42:31 +0400 |
commit | 6f074f6f461066777f5d7546882c44d8ba0288db (patch) | |
tree | 895be0ba83b83da3e1a8aee7c228dcb29ba121b2 /source/blender/src/view.c | |
parent | cfe9a9575526458412d50cc6122fdde1d66dd4d2 (diff) |
Two nice workflow improvements;
- Zbuffer clipped selection
Based on same algos as for drawing (blender polygon offset) vertices, edges
and faces now are clipped for draw and selection when Zbuffer is used.
Note that it works for endpoint vertices of edges, and for facecenters.
Also works for border and circle-select
- Optimal draw subsurfs
This now draws optimal with faces and edges selected/unselected, hiding the
original 'cage' (mesh) completely.
TODO: edge select, which still uses original (invisible) edge.
http://www.blender3d.org/cms/Mesh_editing_rewrite.425.0.html
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r-- | source/blender/src/view.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c index d495736905f..9f8e65da670 100644 --- a/source/blender/src/view.c +++ b/source/blender/src/view.c @@ -181,8 +181,8 @@ void project_short(float *vec, short *adr) /* clips */ fy= (curarea->winy/2)+(curarea->winy/2)*vec4[1]/vec4[3]; if(fy>0.0 && fy< (float)curarea->winy) { - adr[0]= floor(fx+0.5); - adr[1]= floor(fy+0.5); + adr[0]= floor(fx); + adr[1]= floor(fy); } } } @@ -206,8 +206,8 @@ void project_short_noclip(float *vec, short *adr) fy= (curarea->winy/2)+(curarea->winy/2)*vec4[1]/vec4[3]; if(fy>-32700.0 && fy<32700.0) { - adr[0]= floor(fx+0.5); - adr[1]= floor(fy+0.5); + adr[0]= floor(fx); + adr[1]= floor(fy); } } } |