Skip to content

Commit

Permalink
Do not add nets in GUI preview to make everything faster
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Jan 26, 2025
1 parent 81935d6 commit 03edf1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kikit/actionPlugins/panelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def presetDifferential(source, target):
def transplateBoard(source, target, update=lambda x: None):
CLEAR_MSG = "Clearing the old board in UI"
RENDER_MSG = "Rendering the new board in UI"

target.ClearProject()
target.DeleteAllFootprints()

items = chain(
list(target.GetDrawings()),
list(target.GetFootprints()),
Expand Down Expand Up @@ -88,10 +92,6 @@ def transplateBoard(source, target, update=lambda x: None):
update(RENDER_MSG)
appendItem(target, x)

for n in [n for _, n in source.GetNetInfo().NetsByNetcode().items()]:
update(RENDER_MSG)
target.Add(n)

update(RENDER_MSG)
d = target.GetDesignSettings()
d.CloneFrom(source.GetDesignSettings())
Expand Down

0 comments on commit 03edf1f

Please sign in to comment.