CADSTAR PCB Archive Importer: Fix component mirroring
Need to invert mirror angle before calling MODULE::Flip
This commit is contained in:
parent
dcf69d53f0
commit
a514817c57
|
@ -1079,8 +1079,10 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadComponents()
|
||||||
|
|
||||||
if( comp.Mirror )
|
if( comp.Mirror )
|
||||||
{
|
{
|
||||||
m->Flip( getKiCadPoint( comp.Origin ), false );
|
double mirroredAngle = - getAngleTenthDegree( comp.OrientAngle );
|
||||||
m->SetOrientation( m->GetOrientation() + 1800.0 );
|
NORMALIZE_ANGLE_180( mirroredAngle );
|
||||||
|
m->SetOrientation( mirroredAngle );
|
||||||
|
m->Flip( getKiCadPoint( comp.Origin ), true );
|
||||||
}
|
}
|
||||||
|
|
||||||
loadComponentAttributes( comp, m );
|
loadComponentAttributes( comp, m );
|
||||||
|
|
Loading…
Reference in New Issue