pcbnew: support vertex line start/end width to correctly import certain DXF files
This commit is contained in:
parent
c60eecc165
commit
bba742b804
|
@ -379,7 +379,13 @@ void DXF_IMPORT_PLUGIN::addVertex( const DL_VertexData& aData )
|
||||||
return; // Error
|
return; // Error
|
||||||
|
|
||||||
DXF_IMPORT_LAYER* layer = getImportLayer( attributes.getLayer() );
|
DXF_IMPORT_LAYER* layer = getImportLayer( attributes.getLayer() );
|
||||||
double lineWidth = lineWeightToWidth( attributes.getWidth(), layer );
|
double lineWidth = lineWeightToWidth( attributes.getWidth(), layer );
|
||||||
|
|
||||||
|
/* support for per-vertex-encoded linewidth (Cadence uses it) */
|
||||||
|
if( aData.startWidth > 0.0 )
|
||||||
|
lineWidth = aData.startWidth;
|
||||||
|
else if ( aData.endWidth > 0.0 )
|
||||||
|
lineWidth = aData.endWidth;
|
||||||
|
|
||||||
const DL_VertexData* vertex = &aData;
|
const DL_VertexData* vertex = &aData;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue