From: spog Date: Sat, 25 Feb 2006 21:03:36 +0000 (+0000) Subject: fixed culling bug in ortho views X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9bd4a1e29fb7a1341b26dc91ea736ec9459fdef7;p=xonotic%2Fnetradiant.git fixed culling bug in ortho views git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@25 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- diff --git a/CHANGES b/CHANGES index cb60a652..36939db2 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ This is the changelog for developers, != changelog for the end user that we distribute with the binaries. (see changelog) +25/02/2006 +SPoG +- Fixed objects sometimes dissappearing when at high zoom level in Ortho views. + 24/02/2006 SPoG - Added GPL text to win32 installer. diff --git a/radiant/xywindow.cpp b/radiant/xywindow.cpp index 19d4e56f..d80787d6 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -2133,7 +2133,7 @@ void XYWnd::updateModelview() m_modelview[8] = 0; m_modelview[9] = 0; - m_modelview[10] = -m_fScale; + m_modelview[10] = -1.0; break; case XZ: m_modelview[0] = m_fScale; @@ -2142,7 +2142,7 @@ void XYWnd::updateModelview() m_modelview[4] = 0; m_modelview[5] = 0; - m_modelview[6] = m_fScale; + m_modelview[6] = 1.0; m_modelview[8] = 0; m_modelview[9] = m_fScale; @@ -2151,7 +2151,7 @@ void XYWnd::updateModelview() case YZ: m_modelview[0] = 0; m_modelview[1] = 0; - m_modelview[2] = -m_fScale; + m_modelview[2] = -1.0; m_modelview[4] = m_fScale; m_modelview[5] = 0;