PNS: Do not allow smart pads when in 90-degree mode

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10386

(cherry picked from commit cf4d46b24d)
This commit is contained in:
Jon Evans 2022-01-13 20:21:19 -05:00
parent e7d0318fb2
commit 3011ae1d51
1 changed files with 8 additions and 1 deletions

View File

@ -654,8 +654,15 @@ bool LINE_PLACER::rhWalkOnly( const VECTOR2I& aP, LINE& aNewHead )
break;
}
if( Settings().SmartPads() && !m_mouseTrailTracer.IsManuallyForced() )
DIRECTION_45::CORNER_MODE cornerMode = Settings().GetCornerMode();
// Smart Pads is incompatible with 90-degree mode for now
if( Settings().SmartPads()
&& ( cornerMode == DIRECTION_45::MITERED_45 || cornerMode == DIRECTION_45::ROUNDED_45 )
&& !m_mouseTrailTracer.IsManuallyForced() )
{
effort |= OPTIMIZER::SMART_PADS;
}
if( m_placingVia && viaOk )
{