pcbnew: Remove maximum zone corner radius
We no longer require this as we calculate the number of segments based on the maximum deviation rather than fixed numbers. Fixes: lp:1780518 * https://bugs.launchpad.net/kicad/+bug/1780518
This commit is contained in:
parent
1ee579c821
commit
ebfa7d1f7d
|
@ -646,8 +646,6 @@ int ZONE_CONTAINER::GetThermalReliefCopperBridge( D_PAD* aPad ) const
|
|||
void ZONE_CONTAINER::SetCornerRadius( unsigned int aRadius )
|
||||
{
|
||||
m_cornerRadius = aRadius;
|
||||
if( m_cornerRadius > (unsigned int) Mils2iu( MAX_ZONE_CORNER_RADIUS_MILS ) )
|
||||
m_cornerRadius = Mils2iu( MAX_ZONE_CORNER_RADIUS_MILS );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -142,9 +142,7 @@ void ZONE_SETTINGS::ExportSetting( ZONE_CONTAINER& aTarget, bool aFullExport ) c
|
|||
|
||||
void ZONE_SETTINGS::SetCornerRadius( int aRadius )
|
||||
{
|
||||
if( aRadius > Mils2iu( MAX_ZONE_CORNER_RADIUS_MILS ) )
|
||||
m_cornerRadius = Mils2iu( MAX_ZONE_CORNER_RADIUS_MILS );
|
||||
else if( aRadius < 0 )
|
||||
if( aRadius < 0 )
|
||||
m_cornerRadius = 0;
|
||||
else
|
||||
m_cornerRadius = aRadius;
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
#include <zones.h>
|
||||
#include <wx/dataview.h>
|
||||
|
||||
#define MAX_ZONE_CORNER_RADIUS_MILS 400
|
||||
|
||||
enum ZONE_FILL_MODE
|
||||
{
|
||||
ZFM_POLYGONS = 0, // fill zone with polygons
|
||||
|
|
Loading…
Reference in New Issue