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:
parent
e7d0318fb2
commit
3011ae1d51
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue