mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix inches/mm confusion in idf export
This commit is contained in:
parent
924b027503
commit
8d0c629f37
@ -466,9 +466,9 @@ static void idf_export_footprint( BOARD* aPcb, FOOTPRINT* aFootprint, IDF3_BOARD
|
|||||||
throw( std::runtime_error( aIDFBoard.GetError() ) );
|
throw( std::runtime_error( aIDFBoard.GetError() ) );
|
||||||
|
|
||||||
double rotz = aFootprint->GetOrientation().AsDegrees();
|
double rotz = aFootprint->GetOrientation().AsDegrees();
|
||||||
double locx = sM->m_Offset.x * 25.4; // part offsets are in inches
|
double locx = sM->m_Offset.x; // part offsets are in mm
|
||||||
double locy = sM->m_Offset.y * 25.4;
|
double locy = sM->m_Offset.y;
|
||||||
double locz = sM->m_Offset.z * 25.4;
|
double locz = sM->m_Offset.z;
|
||||||
double lrot = sM->m_Rotation.z;
|
double lrot = sM->m_Rotation.z;
|
||||||
|
|
||||||
bool top = ( aFootprint->GetLayer() == B_Cu ) ? false : true;
|
bool top = ( aFootprint->GetLayer() == B_Cu ) ? false : true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user