Remove uncommented dead code in 3D viewer

This commit is contained in:
Mikolaj Wielgus 2021-11-20 02:45:57 +01:00
parent 766a09c338
commit c3b792592b
1 changed files with 0 additions and 2 deletions

View File

@ -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 );