Hack to keep 3D Viewer's "home" zoom from being too small.
This commit is contained in:
parent
f9530d0b3f
commit
af9fc5be2f
|
@ -367,6 +367,10 @@ void BOARD_ADAPTER::InitSettings( REPORTER* aStatusReporter, REPORTER* aWarningR
|
||||||
// Calculate the conversion to apply to all positions.
|
// Calculate the conversion to apply to all positions.
|
||||||
m_biuTo3Dunits = RANGE_SCALE_3D / std::max( m_boardSize.x, m_boardSize.y );
|
m_biuTo3Dunits = RANGE_SCALE_3D / std::max( m_boardSize.x, m_boardSize.y );
|
||||||
|
|
||||||
|
// Hack to keep "home" zoom from being too small.
|
||||||
|
if( !m_board->IsFootprintHolder() )
|
||||||
|
m_biuTo3Dunits *= 1.6f;
|
||||||
|
|
||||||
m_boardBodyThickness3DU = DEFAULT_BOARD_THICKNESS * m_biuTo3Dunits;
|
m_boardBodyThickness3DU = DEFAULT_BOARD_THICKNESS * m_biuTo3Dunits;
|
||||||
m_frontCopperThickness3DU = DEFAULT_COPPER_THICKNESS * m_biuTo3Dunits;
|
m_frontCopperThickness3DU = DEFAULT_COPPER_THICKNESS * m_biuTo3Dunits;
|
||||||
m_backCopperThickness3DU = DEFAULT_COPPER_THICKNESS * m_biuTo3Dunits;
|
m_backCopperThickness3DU = DEFAULT_COPPER_THICKNESS * m_biuTo3Dunits;
|
||||||
|
|
Loading…
Reference in New Issue