diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bb2634..adf6650 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added * Smarter cache: changing KiCad or --zones option invalidates the cache +### Fixed +* KiRi mode for KiCad 5: + - Plotting the worksheet makes KiCad crash, disabled ## [2.5.1] - 2024-01-03 ### Added diff --git a/kicad-diff.py b/kicad-diff.py index 2767153..798a249 100755 --- a/kicad-diff.py +++ b/kicad-diff.py @@ -163,10 +163,12 @@ def GenPCBImages(file, file_hash, hash_dir, file_no_ext, layer_names, wanted_lay popt = pctl.GetPlotOptions() popt.SetOutputDirectory(abspath(hash_dir)) # abspath: Otherwise it will be relative to the file # Options - popt.SetPlotFrameRef(kiri_mode) # KiCad 5 only if kicad_version_major == 5: popt.SetLineWidth(FromMM(0.35)) + popt.SetPlotFrameRef(False) + else: + popt.SetPlotFrameRef(kiri_mode) popt.SetMirror(False) popt.SetUseGerberAttributes(True) SetExcludeEdgeLayer(popt, False, board.GetLayerID('Edge.Cuts'))