PNS: Do not allow smart pads when in 90-degree mode
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10386
This commit is contained in:
parent
739c14eaa2
commit
cf4d46b24d
|
@ -653,8 +653,15 @@ bool LINE_PLACER::rhWalkOnly( const VECTOR2I& aP, LINE& aNewHead )
|
||||||
break;
|
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;
|
effort |= OPTIMIZER::SMART_PADS;
|
||||||
|
}
|
||||||
|
|
||||||
if( m_placingVia && viaOk )
|
if( m_placingVia && viaOk )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue