Remove uncommented dead code in 3D viewer
This commit is contained in:
parent
766a09c338
commit
c3b792592b
|
@ -922,8 +922,6 @@ void RENDER_3D_RAYTRACE::Reload( REPORTER* aStatusReporter, REPORTER* aWarningRe
|
||||||
// have time and patience).
|
// have time and patience).
|
||||||
if( m_objectContainer.GetList().size() > 0 )
|
if( m_objectContainer.GetList().size() > 0 )
|
||||||
{
|
{
|
||||||
/*float ratio = std::max( 1.0f, m_objectContainer.GetBBox().GetMaxDimension()
|
|
||||||
/ m_boardAdapter.GetBBox().GetMaxDimension() );*/
|
|
||||||
float ratio =
|
float ratio =
|
||||||
std::max( 1.0f, m_objectContainer.GetBBox().GetMaxDimension() / RANGE_SCALE_3D );
|
std::max( 1.0f, m_objectContainer.GetBBox().GetMaxDimension() / RANGE_SCALE_3D );
|
||||||
m_camera.SetMaxZoom( m_camera.GetMaxZoom() * ratio );
|
m_camera.SetMaxZoom( m_camera.GetMaxZoom() * ratio );
|
||||||
|
|
Loading…
Reference in New Issue