From 00f1b609c4247a79a2ac4272380e2a17f7b47bf3 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 8 Jul 2021 19:56:29 -0400 Subject: [PATCH] PNS: Don't run fanout cleanup when manually forced Fixes https://gitlab.com/kicad/code/kicad/-/issues/8724 --- pcbnew/router/pns_line_placer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/router/pns_line_placer.cpp b/pcbnew/router/pns_line_placer.cpp index 2ee07d84c1..9b13ca1522 100644 --- a/pcbnew/router/pns_line_placer.cpp +++ b/pcbnew/router/pns_line_placer.cpp @@ -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;