Restore Fix Discontinuities default tolerance; enable it by default.

There's no artifacts anymore due to CalcArcCenter fixes.
This commit is contained in:
Alex Shvartzkop 2024-01-16 12:12:56 +03:00
parent fc62d36441
commit 338914c7cf
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ bool DIALOG_IMPORT_GRAPHICS::s_useDlgLayerSelection = true;
bool DIALOG_IMPORT_GRAPHICS::s_placementInteractive = true; bool DIALOG_IMPORT_GRAPHICS::s_placementInteractive = true;
bool DIALOG_IMPORT_GRAPHICS::s_shouldGroupItems = true; bool DIALOG_IMPORT_GRAPHICS::s_shouldGroupItems = true;
bool DIALOG_IMPORT_GRAPHICS::s_fixDiscontinuities = true; bool DIALOG_IMPORT_GRAPHICS::s_fixDiscontinuities = true;
int DIALOG_IMPORT_GRAPHICS::s_toleranceValue = pcbIUScale.mmToIU( 0.01 ); int DIALOG_IMPORT_GRAPHICS::s_toleranceValue = pcbIUScale.mmToIU( 1.0 );
double DIALOG_IMPORT_GRAPHICS::s_importScale = 1.0; // Do not change the imported items size double DIALOG_IMPORT_GRAPHICS::s_importScale = 1.0; // Do not change the imported items size

View File

@ -447,10 +447,10 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS()
&m_ImportGraphics.group_items, true ) ); &m_ImportGraphics.group_items, true ) );
m_params.emplace_back( new PARAM<bool>( "import_graphics.fix_discontinuities", m_params.emplace_back( new PARAM<bool>( "import_graphics.fix_discontinuities",
&m_ImportGraphics.fix_discontinuities, false ) ); &m_ImportGraphics.fix_discontinuities, true ) );
m_params.emplace_back( new PARAM<double>( "import_graphics.tolerance", m_params.emplace_back( new PARAM<double>( "import_graphics.tolerance",
&m_ImportGraphics.tolerance, 0.01, 0.0, 10.0 ) ); &m_ImportGraphics.tolerance, 1.0, 0.0, 10.0 ) );
m_params.emplace_back( new PARAM<int>( "import_graphics.line_width_units", m_params.emplace_back( new PARAM<int>( "import_graphics.line_width_units",
&m_ImportGraphics.dxf_line_width_units, 0 ) ); &m_ImportGraphics.dxf_line_width_units, 0 ) );