← Back to team overview

kicad-developers team mailing list archive

Re: Patch: improved magnetism

 

--W5WqUoFLvi1M7tJE Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

One more small improvement (on top of my previous patches): if DRC is
turned off, also different nets are magnetic.

By the way, I've written a little description of some scenarios where
magnetic traces make it easier to obtain tidy results:
http://www.almesberger.net/misc/kicad/magnet/

- Werner
 --W5WqUoFLvi1M7tJE Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="kicad-magnet-drc.patch"

Index: kicad-svn/pcbnew/controle.cpp
===================================================================
--- kicad-svn.orig/pcbnew/controle.cpp
+++ kicad-svn/pcbnew/controle.cpp
@@ -279,7 +279,7 @@
const TRACK *curr = NULL;
const TRACK *via, *track;
int layer, layer_mask;
- bool sometimes = g_MagneticPadOption != capture_always;
+ bool sometimes = g_MagneticPadOption != capture_always && Drc_On;

curr = g_CurrentTrackSegment;
if (frame->GetCurItem() != curr)
 --W5WqUoFLvi1M7tJE-- 




Follow ups

References