Fixed: SCH load and PCB components consolidation reuse.

The code did the tasks over and over.
This commit is contained in:
Salvador E. Tropea 2020-09-02 18:08:04 -03:00
parent 712d135df5
commit d681528a03
1 changed files with 3 additions and 0 deletions

View File

@ -148,6 +148,8 @@ def load_board(pcb_file=None):
def load_sch():
if GS.sch: # Already loaded
return
GS.kicad_version = pcbnew.GetBuildVersion()
logger.debug('KiCad: '+GS.kicad_version)
GS.check_sch()
@ -189,6 +191,7 @@ def get_board_comps_data(comps):
c.virtual = True
else:
c.tht = True
GS.board_comps_joined = True
def preflight_checks(skip_pre):