action.c: ElementList() reloads from disk
commitcd98c44274b4f43e75aed33f08f68824399364ec
authorDan White <dan@whiteaudio.com>
Sat, 25 Feb 2012 21:07:43 +0000 (25 15:07 -0600)
committerDan White <dan@whiteaudio.com>
Thu, 29 Mar 2012 16:11:21 +0000 (29 11:11 -0500)
treec23e82d7fa957bfa2be608ea9af2a82d6da60e71
parent540875f7bf96752d403a0e7f6cc42cffcc5a1d2b
action.c: ElementList() reloads from disk

Loads footprints from disk instead of memory.  This happens within ElementList
in the following situations:

 * An element with the requested refdes is not present.

 * The element found by refdes has a different "Desc" field than the requested
   <footprint> value.

 * The "ForceUpdate" argument is given.

ElementList() is mostly used in the Import() machinery normally through the
gnetlist backend "pcbfwd".  Its usage, then, is related to schematic->pcb
annotation and updating.  The ability to load updated footprints from disk
avoids the need to restart PCB to use the new versions.
src/action.c