View3D four-split: added box-clip for the three ortho
windows. Is all on by default, waiting for headers and
buttons to come back.

Also: hotkey for foursplit now also removes it (toggle)

Also: window_to_3d() function only did delta's, 
renamed it to window_to_3d_delta  and coded a 
real window_to_3d()
This commit is contained in:
2009-01-20 18:31:11 +00:00
parent 81763d8cf0
commit bd9e896e96
11 changed files with 161 additions and 34 deletions

View File

@@ -930,7 +930,7 @@ static void setNearestAxis3d(TransInfo *t)
and to overflow the short integers.
The formula used is a bit stupid, just a simplification of the substraction
of two 2D points 30 pixels apart (that's the last factor in the formula) after
projecting them with window_to_3d and then get the length of that vector.
projecting them with window_to_3d_delta and then get the length of that vector.
*/
zfac= t->persmat[0][3]*t->center[0]+ t->persmat[1][3]*t->center[1]+ t->persmat[2][3]*t->center[2]+ t->persmat[3][3];
zfac = VecLength(t->persinv[0]) * 2.0f/t->ar->winx * zfac * 30.0f;