GenCAD exporter: simplify shape matching

This commit is contained in:
Maciej Suminski 2017-10-19 10:16:35 +02:00
parent 019dca38c4
commit 82759f9cd0
1 changed files with 2 additions and 1 deletions

View File

@ -767,6 +767,7 @@ static void CreateShapesSection( FILE* aFile, BOARD* aPcb )
}
else // individual shape for each component
{
m_componentShapes[module] = module->GetReference();
FootprintWriteShape( aFile, module, module->GetReference() );
}
@ -861,7 +862,7 @@ static void CreateComponentsSection( FILE* aFile, BOARD* aPcb )
fprintf( aFile, "ROTATION %g\n",
fp_orient / 10.0 );
fprintf( aFile, "SHAPE %s %s %s\n",
TO_UTF8( individualShapes ? module->GetReference() : m_componentShapes[module] ),
TO_UTF8( m_componentShapes[module] ),
mirror, flip );
// Text on silk layer: RefDes and value (are they actually useful?)