Dxf import: fix a bug that disable import of data inside blocks

This commit is contained in:
jean-pierre charras 2020-04-19 13:32:59 +02:00
parent a3e087ab51
commit d3e2345f94
1 changed files with 3 additions and 4 deletions

View File

@ -332,10 +332,9 @@ void DXF_IMPORT_PLUGIN::endEntity()
void DXF_IMPORT_PLUGIN::addBlock( const DL_BlockData& aData ) void DXF_IMPORT_PLUGIN::addBlock( const DL_BlockData& aData )
{ {
// The DXF blocks are not useful in our import, so we skip them with the exception // The DXF blocks are not useful in our import, so we skip the block id
// of the main block that is shown when editing the file // because Pcbnew has no support to group a set of graphic items inside an entity
if( aData.name.compare( "*Model_Space") ) m_inBlock = false;
m_inBlock = true;
} }