PNS: Don't run fanout cleanup when manually forced

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8724
This commit is contained in:
Jon Evans 2021-07-08 19:56:29 -04:00
parent 9975b8fb10
commit 00f1b609c4
1 changed files with 3 additions and 1 deletions

View File

@ -828,7 +828,9 @@ bool LINE_PLACER::optimizeTailHeadTransition()
PNS_DBG( Dbg(), Message, "optimize HT" );
if( OPTIMIZER::Optimize( &linetmp, OPTIMIZER::FANOUT_CLEANUP, m_currentNode ) )
// NOTE: FANOUT_CLEANUP can override posture setting at the moment
if( !m_mouseTrailTracer.IsManuallyForced() &&
OPTIMIZER::Optimize( &linetmp, OPTIMIZER::FANOUT_CLEANUP, m_currentNode ) )
{
if( linetmp.SegmentCount() < 1 )
return false;