From 82759f9cd0c5b55b2827f328fd9b1e98b44db9e2 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 19 Oct 2017 10:16:35 +0200 Subject: [PATCH] GenCAD exporter: simplify shape matching --- pcbnew/exporters/export_gencad.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/exporters/export_gencad.cpp b/pcbnew/exporters/export_gencad.cpp index b60c957861..0928dbcd4b 100644 --- a/pcbnew/exporters/export_gencad.cpp +++ b/pcbnew/exporters/export_gencad.cpp @@ -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?)