diff options
author | Ton Roosendaal <ton@blender.org> | 2005-09-30 01:31:47 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-09-30 01:31:47 +0400 |
commit | d9478dcaf96b812da75377a88abe877533ea0b73 (patch) | |
tree | 25b2865195611ee00c103961c2f12727f5bf6f2c /source/blender/src/view.c | |
parent | 0ef1b52130db0b3f09327c06435872a3d48a8014 (diff) |
Bugfix #3112
Mesh selection in editmode didnt work proper with new ALT+B clip option.
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r-- | source/blender/src/view.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c index 6e43018c9c6..342305e215b 100644 --- a/source/blender/src/view.c +++ b/source/blender/src/view.c @@ -268,11 +268,12 @@ void view3d_get_object_project_mat(ScrArea *area, Object *ob, float pmat[4][4], Mat4MulMat4(vmat, ob->obmat, vd->viewmat); Mat4MulMat4(pmat, vmat, vd->winmat1); + Mat4CpyMat4(vmat, ob->obmat); } } -/* projectmat brings it to window coords, viewmat to rotated view (eye space) */ -void view3d_project_short_clip(ScrArea *area, float *vec, short *adr, float projmat[4][4], float viewmat[4][4]) +/* projectmat brings it to window coords, wmat to rotated world space */ +void view3d_project_short_clip(ScrArea *area, float *vec, short *adr, float projmat[4][4], float wmat[4][4]) { View3D *v3d= area->spacedata.first; float fx, fy, vec4[4]; @@ -282,7 +283,7 @@ void view3d_project_short_clip(ScrArea *area, float *vec, short *adr, float proj /* clipplanes in eye space */ if(v3d->flag & V3D_CLIPPING) { VECCOPY(vec4, vec); - Mat4MulVecfl(viewmat, vec4); + Mat4MulVecfl(wmat, vec4); if(view3d_test_clipping(v3d, vec4)) return; } |