3D viewer: fix incorrect Z position of some back layers.

This commit is contained in:
jean-pierre charras 2024-09-16 13:02:37 +02:00
parent eafe5b5130
commit 4c33d39c3a

View File

@ -456,7 +456,7 @@ void BOARD_ADAPTER::InitSettings( REPORTER* aStatusReporter, REPORTER* aWarningR
- ( m_boardBodyThickness3DU * layer_pos
/ ( m_copperLayersCount - 1 ) );
if( layer_id < (m_copperLayersCount / 2) )
if( layer_pos < (m_copperLayersCount / 2) )
m_layerZcoordTop[layer_id] = m_layerZcoordBottom[layer_id] + m_frontCopperThickness3DU;
else
m_layerZcoordTop[layer_id] = m_layerZcoordBottom[layer_id] - m_backCopperThickness3DU;