Jeff Young
769060c584
Setup 3D canvas for Footprint Chooser previews.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17910
(cherry picked from commit 3be6d5c5de
)
2024-06-03 18:43:36 +01:00
Jeff Young
0b48a66cb0
Don't add things to the selection that aren't in the commit.
...
Don't process line-pairs when one has already been deleted.
Clean up created line segments when operation is cancelled.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18122
(cherry picked from commit 6f0a1ade01
)
2024-06-03 18:43:07 +01:00
Jeff Young
836b3219c1
Apply ExportPdf fix to remaining jobs.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17863
(cherry picked from commit c0635f222d
)
2024-06-03 18:36:46 +01:00
Jeff Young
2c0010fbcb
Make sure var overrides get synced to board properties.
...
Also allow the board properties to override title-block properties.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17863
(cherry picked from commit 3cf424d929
)
2024-06-03 18:36:06 +01:00
Jeff Young
299495a0aa
Repair merge errors.
2024-06-03 18:29:37 +01:00
Jeff Young
6f3b6e3ad8
Move pad checking to Footprint Checker.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18102
(cherry picked from commit 15d4e114e0
)
2024-06-03 18:29:37 +01:00
jean-pierre charras
cb9d78b46c
FOOTPRINT::CheckPads(): better check for hole in PHT pad.
...
Hole not fully inside the pad copper area is now tested.
(cherry picked from commit 8165ec66e9
)
2024-06-03 18:29:37 +01:00
Jeff Young
06150388d8
Trim trailing punctionation from doc URLs.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18089
(cherry picked from commit f3b57c20af
)
2024-06-03 18:29:37 +01:00
Jeff Young
b07de4f6af
Trim covered region to bounding hull.
...
Otherwise a long track crossing a footprint will look
like it covers most of it.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17299
(cherry picked from commit e400d49af6
)
2024-06-03 18:29:37 +01:00
Jeff Young
546ca18662
Delete tuning patterns in Unroute Selected.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18065
(cherry picked from commit a678d0d710
)
2024-06-03 18:29:37 +01:00
Jeff Young
de0f6ecf68
Fetch board finish before exporting stackup to clipboard.
...
Also fixes some backward logic in setting modified flag.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17089
(cherry picked from commit 032b5a6d65
)
2024-06-03 18:29:37 +01:00
Jeff Young
bee4856a7f
Process clearance rules for plated holes in router.
...
Also makes sure the clearance is shown for a collision,
even if the preference for showing clearances is off.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18078
(cherry picked from commit d5c3a4036c
)
2024-06-03 18:29:37 +01:00
Jeff Young
7a1ab44207
Rewrite Eagle rotated text algorithm.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18019
(cherry picked from commit debc94ff49
)
2024-06-03 18:29:37 +01:00
Jeff Young
d269513857
Improve Eagle rotated text importing.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18019
(cherry picked from commit f4f3f52fd4
)
2024-06-03 18:29:37 +01:00
Jeff Young
b4928f20a6
We can only knockout a pad if we're plotting the pad shape.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17166
(cherry picked from commit 0ff59bc60e
)
2024-06-03 18:29:37 +01:00
Jeff Young
05d2893ac1
Don't suppress hole plotting for utility layers.
...
Also simplifies the handling of DXF outline plotting.
Also removes some comments which were no longer accurate.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17166
(cherry picked from commit 826b72c499
)
2024-06-03 18:29:37 +01:00
Mike Williams
7ea205222d
pcb: grab unconnected needs to ignore same-footprint ratsnets items
2024-06-03 12:46:13 -04:00
Alex Shvartzkop
f9a9db6503
Fix very tall Plot dialog on GTK.
...
Some scrollable controls need wxFIXED_MINSIZE, on some platforms, apparently.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16926
2024-05-24 23:35:21 +03:00
Alex Shvartzkop
8d001a8031
Switch length tuner settings action scope to global to make the hotkey work.
2024-05-24 17:46:15 +03:00
Seth Hillbrand
c27ca33a2e
Ensure that the copper conn check re-adds epsilon
...
When checking if the particular rule is what is being checked, we rely
on the value of the minimum width. Since we modified that to allow
width checking, this re-adds it for the comparison
(cherry picked from commit f74d1060d4
)
2024-05-22 16:31:52 -07:00
Seth Hillbrand
1073ca0760
Include DRC Epsilon in connection width checker
...
Avoids rounding errors flagging connections too small by nanometers
(cherry picked from commit bce560d05f
)
2024-05-22 16:31:52 -07:00
Jeff Young
4440fe0935
Fix keep-upright algo for footprint text.
...
Also removes PCB_FIELDs from rotation centre calc in
footprint editor if there is other stuff selected.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16896
(cherry picked from commit 25bb3f77fa
)
2024-05-22 14:47:26 -07:00
Seth Hillbrand
d1cd859765
Re-enable moving of all footprint text in board
...
Seems like a lot of people really like to be able to modify the text
positions/content of their footprints
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18024
(cherry picked from commit 47e4ebb32a
)
2024-05-22 10:36:42 -07:00
John Beard
36119b869c
Pcbnew: Fix context menu when moving
...
The EDIT_TOOL is actually 'co-operating' with the SELECTION_TOOL
by putting its tools into the SELECTION_TOOL's menu. This means
the EDIT_TOOL::m_menu is sad and empty inside, and if you show it,
it either doesn't show at all, or a tiny stub is shown.
(cherry picked from commit af74d2a746
)
2024-05-22 11:24:47 +08:00
Jeff Young
d8f2a455e0
Reset zone offsets when exporting footprints.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17794
(cherry picked from commit af5ed5a118
)
2024-05-21 11:41:07 +01:00
Jeff Young
561b2d490d
Handle font when reading render cache.
...
(Also fixes a bug where the cache's triangulation wasn't
cached.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17666
(cherry picked from commit e332320108
)
2024-05-21 11:36:36 +01:00
jean-pierre charras
1869da0e7d
Dialog Export step: fix an issue when exporting a modified board file.
...
the DIALOG_EXPORT_STEP uses a auto saved copy of the current board to
create the step file (using kicad_cli).
But this file is not associated to a corresponding .kicad_pro file, and
this can create some issues (like the KIPRJMOD not defined)
So create a copy of the current board prj to export associated prj file
to the auto saved board file.
From master branch
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16973
2024-05-21 11:06:02 +02:00
dsa-t
be2f317f6d
Vertically center the color swatch in grid layer selector.
...
(cherry picked from commit 5f153eef7f
)
Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
2024-05-21 02:35:49 +00:00
Seth Hillbrand
c248993a84
Avoid snapping to edge cuts when routing
...
Snapping happens to elements on copper layers but edge cuts is only
_virtually_ on copper layers. We need to set its routable flag off to
ensure we don't force-snap to the snap points
2024-05-20 15:08:12 -07:00
Seth Hillbrand
f75e6dae84
Reserve shift for grid modification
2024-05-20 15:08:12 -07:00
Seth Hillbrand
625d241adf
Avoid case where whole line is new head
...
If the whole line shifts, we may have no points of the old tail in the
new line. In this case, we may not only not find the split point but we
may also have fewer points in the new line than were in the old head.
Clamping to the maximum potential point count prevents creating invalid
lines
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16591
(cherry picked from commit 586fddeec1
)
2024-05-20 15:08:12 -07:00
Alex Shvartzkop
1264230973
STEP export: reverse Wire when adding it to Face as a hole.
...
Better fix for https://gitlab.com/kicad/code/kicad/-/issues/17446
2024-05-19 03:51:53 +03:00
Jon Evans
585f11a01d
Clear undo/redo lists when removing board layers
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17613
(cherry picked from commit 90ee5e097a
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-18 22:16:28 +00:00
Jon Evans
d6a121d617
Don't drag multiple coincident vias
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17915
(cherry picked from commit 7a3db2d176
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-18 21:51:09 +00:00
Alex Shvartzkop
dfd8aa402d
Fix an assert in isCopperOutside.
2024-05-18 22:50:13 +03:00
Alex Shvartzkop
5b1c84b5dd
STEP export: allow closing (and constructing) the wire with 1nm edges.
...
This is ok (and required) because we don't mess with BRepBuilderAPI::Precision nowadays.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18030
2024-05-18 22:50:13 +03:00
Jon Evans
11586863cf
Fix broken hit test for arcs in via placer
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17844
(cherry picked from commit aaf3142e9a
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-18 17:12:34 +00:00
Jon Evans
d52e50a97a
Altium: avoid crash when imported zone has no fill
...
Fix https://gitlab.com/kicad/code/kicad/-/issues/18025
(cherry picked from commit 4f3117aea0
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-18 00:16:22 +00:00
Jon Evans
fee0028ee9
Support LIB_ID queries in searchFootprints too
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18039
2024-05-17 13:57:17 -04:00
Jon Evans
2cd0139cbf
Remove extra NeedRIGHT in textbox parser
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18033
2024-05-17 09:01:59 -04:00
Jeff Young
28cd2a203e
Fix compiler version issues.
2024-05-17 12:59:30 +01:00
Jeff Young
33715143e3
Honour LAYER, SHEETNAME and SHEETPATH variable overrides on CLI.
...
Also allows the LAYER variable to work automatically
if you're plotting/exporting a single layer.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17680
(cherry picked from commit 3e0c598500
)
2024-05-17 11:38:56 +01:00
Jeff Young
ba6fd2716e
Lazily re-evaluate worst-clearance cache.
...
This prevents crashes when trying to re-evaluate
during destruction, etc. and is a cleaner solution
than trying to keep a flag updated.
It should also be a performance win for very large
documents.
Also implements proper threadlocking for the cache.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17950
(cherry picked from commit 498d2c9db1
)
2024-05-17 11:37:04 +01:00
Jeff Young
3e50a03ce7
Expose violation severity for co-located holes.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18028
(cherry picked from commit 26906f383c
)
2024-05-17 11:20:21 +01:00
John Beard
44b0ef64e8
No longer auto-set the Footprint field when setting the FPID
...
This avoids forcing the field to the footprint name in the
library editor, which gets in the way. This doesn't specifically
inhibit the use of the field, and doesn't interfere with fields
users may have set manually (it can be cleared manually if
wished).
Removing the footprint field entirely either from all footprints
or from footprints in fpedit is quite a bit more invasive to
existing designs.
Relates-To: https://gitlab.com/kicad/code/kicad/-/issues/17998
2024-05-16 21:42:18 +08:00
Jeff Young
0b48913876
Add mirrored column to fields grid table.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17956
(cherry picked from commit 0f3d14df38
)
2024-05-15 11:25:02 +01:00
Jeff Young
c748645334
Fix typo.
...
(cherry picked from commit 5ba4900170
)
2024-05-15 11:23:07 +01:00
Jeff Young
cde18d7ae7
The user can cancel the opening of many editors.
...
Don't play dice with the devil.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17989
(cherry picked from commit a99377c1ec
)
2024-05-09 23:36:32 +01:00
Jeff Young
cc75d8c0af
Exercise more care when comparing doubles.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17249
(cherry picked from commit 62d4bd7c1d
)
2024-05-09 23:36:32 +01:00
Wayne Stambaugh
cb93d2940c
Fix QA DRC regression test issue.
...
(cherry picked from commit f1e8495dc9
)
2024-05-09 10:38:47 -04:00