Skip to content

Commit

Permalink
[Fixed] The image replacer needs KiCad 6+
Browse files Browse the repository at this point in the history
See #713
  • Loading branch information
set-soft committed Nov 12, 2024
1 parent 03b6265 commit 2396b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kibot/out_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ def sch_replace_one_image(self, sheet, box, output_name, box_index):

def sch_replace_images(self, sch):
""" Used by outputs that support replacing 'kibot_image_OUTPUT' in schematics """
if not GS.global_sch_image_prefix:
if not GS.global_sch_image_prefix or GS.ki5:
return False
logger.debug("Replacing images in schematic")
res = False
Expand All @@ -1237,7 +1237,7 @@ def sch_replace_images(self, sch):

def sch_restore_images(self, sch):
""" Used to undo sch_replace_images """
if not GS.global_sch_image_prefix:
if not GS.global_sch_image_prefix or GS.ki5:
return False
logger.debug("Restoring images in schematic")
key = GS.global_sch_image_prefix+'_'
Expand Down

0 comments on commit 2396b64

Please sign in to comment.