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
0a227ea916
Avoid int overflow in collisions
...
When calculating arc collisions, avoid overflowing the integer distance,
which gives a false nearest point
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
160a493885
Ensure that arc closest positions are matched
...
We switch from squared to absolute calcualtion when calling into the arc
collision so be sure to catch the new positions and distances
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
Alex Shvartzkop
6dfd417767
Make IBIS errors visible / more obvious.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18041
2024-05-19 01:44:16 +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
a762311733
The upcoming Fedora 41 will use python 3.13
...
The Fedora folks are currently working on updating python to version
3.13 in Fedora 41.
(cherry picked from commit f8c8dcde13
)
Co-authored-by: Steven A. Falco <stevenfalco@gmail.com>
2024-05-17 14:50:03 +00:00
Jon Evans
e0581370e1
Fix bogus value field in spice test source.
...
(cherry picked from commit a0a368f47b
)
Co-authored-by: Jeff Young <jeff@rokeby.ie>
2024-05-17 14:30:23 +00: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
882ff06e24
More PEGTL tomfoolery.
...
(cherry picked from commit 8aaca0509c
)
2024-05-17 11:25:26 +01:00
Jeff Young
f52a51dce3
Reimplement bracedExpr and token lists for CPL models only.
...
This prevents the incompatibility between token lists
and single-token param-value pairs.
(cherry picked from commit 086e609c3d
)
2024-05-17 11:25:22 +01:00
Jeff Young
a96e16b766
Tighter control over braced-expression list separators.
...
(cherry picked from commit 2921d47fb3
)
2024-05-17 11:25:19 +01:00
Jeff Young
81e51b00ca
Remove support for multiple token values for CPL models.
...
It breaks param lists which contain single-token params
(ie: those without the "=<value>" part).
(cherry picked from commit 8bb807f170
)
2024-05-17 11:25:15 +01:00
Jeff Young
c01681a32e
Repair variable resolution recursion guard.
...
(cherry picked from commit c8d1c1f1a4
)
2024-05-17 11:24:37 +01:00
Jeff Young
eeb9133588
Support multiple brace-expressions for CPL model lines.
...
(Nested brace-expressions, on the other hand, are *not*
an ngspice thing.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17824
(cherry picked from commit 0008991f02
)
2024-05-17 11:24:21 +01:00
Jeff Young
d45769e508
Allow .ends to be preceeded by whitespace.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16560
(cherry picked from commit b934914c59
)
2024-05-17 11:21:47 +01:00
Jeff Young
a499bc9f66
Contour cache must be sensitive to size.
...
(While we scale the contours afterwards, font hint
data is size-sensitive so the contours are already
size-specific.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18014
(cherry picked from commit 98f4e60b90
)
2024-05-17 11:20:38 +01:00
Jeff Young
341f102d79
Fix PEGTL flagParam grammar.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16393
(cherry picked from commit c5162f5483
)
2024-05-17 11:20:26 +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
Jon Evans
1defa3872e
Clear field listener when quitting
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18016
(cherry picked from commit 2836025402
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-17 00:50:48 +00:00
jean-pierre charras
e66d25b6e8
Eeschema, Pin helpers: fix wrong label orientation if the symbol is rotated
...
From Master branch
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18012
2024-05-16 19:53:23 +02:00
jean-pierre charras
76f38600af
Fix a 100% CPU core usage is some editing cases.
...
In commit 7cb754dd
a call to wxMilliSleep(50) was removed (because it created
lag in editing) but this removal created a 100% CPU core usage.
Using a much small sleep time (1ms) fixes these issues.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17979
2024-05-16 17:40:06 +02: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
John Beard
c3e7509823
Allow to set LIB_FIELD size through property manager
...
This can be useful when managing auxiliary fields.
This is only for the 8.0 branch, as LIB_FIELD is merged
with SCH_FIELD in 8.99, so this is already handled.
2024-05-16 20:45:26 +08:00
Jeff Young
3622a296be
Use consistent sorting for footprint libs.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17731
(cherry picked from commit 02bc093b55
)
2024-05-15 11:25:41 +01: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
9000cfb9cd
Use display titles for axes in CSV output.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17324
(cherry picked from commit d9a6b2aec2
)
2024-05-15 11:23:52 +01:00
Jeff Young
c748645334
Fix typo.
...
(cherry picked from commit 5ba4900170
)
2024-05-15 11:23:07 +01:00
Jeff Young
79443b7e59
Update signals & measurements when netlist might have changed.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17616
(cherry picked from commit 55b2c4dbf4
)
2024-05-15 11:22:08 +01:00
Mark Roszko
02925fdecc
Update file doxygen.yml
...
(cherry picked from commit 3a2b960f62
)
Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2024-05-12 02:53:57 +00:00
Mark Roszko
ef1e054bb6
Use our docker runner for doxygen
...
docker tag for shared gitlab runners was removed by gitlab
(cherry picked from commit 03459723b3
)
Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2024-05-12 01:09:42 +00:00
Mark Roszko
bb13ab2963
Remove the kicad-vcpkg xz override
...
(cherry picked from commit 695493fc3d
)
Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2024-05-10 01:44:39 +00:00
Jeff Young
9c7fb0697c
Don't double up ac and ph params.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17970
2024-05-09 23:36:32 +01:00
Jeff Young
c92b11900b
Don't add duplicate SIM fields.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17970
2024-05-09 23:36:32 +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
1a932cb13b
Don't modify radius when editing center.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17192
(cherry picked from commit 1290228fbf
)
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