code cleanup: move runtime var zfac out of RegionView3D. rename initgrabz() -> ED_view3d_calc_zfac() and have it return the zfac to use.
This commit is contained in:
@@ -183,7 +183,7 @@ void convertViewVec(TransInfo *t, float r_vec[3], int dx, int dy)
|
||||
{
|
||||
if ((t->spacetype == SPACE_VIEW3D) && (t->ar->regiontype == RGN_TYPE_WINDOW)) {
|
||||
const float mval_f[2] = {(float)dx, (float)dy};
|
||||
ED_view3d_win_to_delta(t->ar, mval_f, r_vec);
|
||||
ED_view3d_win_to_delta(t->ar, mval_f, r_vec, t->zfac);
|
||||
}
|
||||
else if (t->spacetype == SPACE_IMAGE) {
|
||||
float aspx, aspy;
|
||||
|
||||
Reference in New Issue
Block a user