Seth Hillbrand
e097f88d56
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
(cherry picked from commit c248993a84
)
2024-05-21 09:34:45 -07:00
Seth Hillbrand
64e3e17143
Reserve shift for grid modification
...
(cherry picked from commit f75e6dae84
)
2024-05-21 09:34:45 -07:00
Seth Hillbrand
be0e058807
Optimize ARC hulls in PNS
...
If we can't route through the arc opening, then it is effectively a
circle and we can treat it as such.
2024-05-21 09:34:45 -07:00
Seth Hillbrand
83ad0d5fad
Honor Ctrl+Shift combo when starting routing
...
We want to be able to start routing at an arbitrary point if we
explicitly disable the snapping and grid together
2024-05-21 09:34:45 -07:00
Jeff Young
a5436c92d1
Fix build issue.
2024-05-21 17:16:21 +01:00
John Beard
ee81d1d880
Temporarily disable dimension angle property access to fix build
2024-05-21 22:11:28 +08:00
John Beard
c36efec4b2
Remove evil const that breaks non-Windows compilers
2024-05-21 21:49:49 +08:00
Jeff Young
e332320108
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
2024-05-21 11:31:35 +01:00
Alex Shvartzkop
4cc29184c2
Improve Layer field spacing in footprint properties.
2024-05-21 04:11:59 +03:00
Alex Shvartzkop
ba5e4b613f
Don't show hotkeys in grid layer selector.
2024-05-21 04:11:59 +03:00
John Beard
f941123519
Fix dimension orientation properties
...
Move text orientation to the text properties section (the
dimension IS an EDA_TEXT, but the user doesn't know that!)
Add the "keep aligned" checkbox, and make sure knockouts and
alignments are recomputed correctly.
2024-05-21 08:56:28 +08:00
Alex Shvartzkop
73e0498768
Improve hidpi color swatch sizes in layer selectors on MSW.
2024-05-21 03:46:09 +03:00
Alex Shvartzkop
5f153eef7f
Vertically center the color swatch in grid layer selector.
2024-05-21 03:46:09 +03:00
jean-pierre charras
59a2de7408
Dialog Export step: fix an issue when exorting 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 to export associated to the auto saved board file.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16973
2024-05-20 21:04:33 +02:00
Jeff Young
0ff59bc60e
We can only knockout a pad if we're plotting the pad shape.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17166
2024-05-20 19:48:06 +01:00
Jeff Young
826b72c499
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
2024-05-20 19:48:06 +01:00
Mike Williams
8e286d44fc
Update Footprint: add checkbox for text content
...
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/17935
2024-05-20 09:16:04 -04:00
John Beard
caee430761
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.
(cherry picked from commit 44b0ef64e8
)
Cherry-picking forward to master to at least keep things consistent
for the time being.
Relates-To: https://gitlab.com/kicad/code/kicad/-/issues/17998
2024-05-20 17:32:02 +08:00
Alex Shvartzkop
615f216ef6
STEP export: don't double-check the wire.
2024-05-19 04:08:43 +03:00
Alex Shvartzkop
1a0ce67155
STEP export: reverse Wire when adding it to Face as a hole.
...
Better fix for https://gitlab.com/kicad/code/kicad/-/issues/17446
(cherry picked from commit 1264230973
)
2024-05-19 04:02:35 +03:00
Jon Evans
90ee5e097a
Clear undo/redo lists when removing board layers
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17613
2024-05-18 18:16:07 -04:00
Jon Evans
7a3db2d176
Don't drag multiple coincident vias
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17915
2024-05-18 17:50:52 -04:00
Alex Shvartzkop
3f704cb1f1
Fix an assert in isCopperOutside.
...
(cherry picked from commit dfd8aa402d
)
2024-05-18 22:52:41 +03:00
Alex Shvartzkop
e00219f459
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
(cherry picked from commit 5b1c84b5dd
)
2024-05-18 22:52:41 +03:00
Jon Evans
aaf3142e9a
Fix broken hit test for arcs in via placer
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17844
2024-05-18 13:12:12 -04:00
Jeff Young
d82b149f29
Make hole-to-hole report tag match constraint name.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18040
2024-05-18 15:44:03 +01:00
Jon Evans
4f3117aea0
Altium: avoid crash when imported zone has no fill
...
Fix https://gitlab.com/kicad/code/kicad/-/issues/18025
2024-05-17 20:16:01 -04:00
Jeff Young
af5ed5a118
Reset zone offsets when exporting footprints.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17794
2024-05-17 21:28:30 +01:00
Jeff Young
ea72beb2f7
Remove & then re-add undo items to parent group.
...
Removing the item from the board will also remove it
from any parent group, which then wasn't getting
restored. This makes it more clear that we need to
remove and then re-add.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18017
2024-05-17 19:34:21 +01:00
Jon Evans
7f03666f96
Support LIB_ID queries in searchFootprints too
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18039
(cherry picked from commit fee0028ee9
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-17 17:57:42 +00:00
Jeff Young
25bb3f77fa
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
2024-05-17 18:34:44 +01:00
Alex Shvartzkop
0772739cf1
3D model export: Improve 3D layer placement calculation algorithm.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18035
2024-05-17 18:20:24 +03:00
Jon Evans
4c42f5dae0
Remove extra NeedRIGHT in textbox parser
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18033
2024-05-17 09:05:04 -04:00
Jeff Young
26906f383c
Expose violation severity for co-located holes.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18028
2024-05-17 11:15:44 +01:00
Alex Shvartzkop
fd438cb8e0
VRML to XCAFDoc reader is only available in OCCT 7.7.0+
2024-05-16 22:52:19 +03:00
Alex Shvartzkop
8fd12d8b7e
Allow reading VRML models for glTF export.
...
Note that some VRML 2.0 models fill fail until our patches are integrated into OCCT 7.9.0.
2024-05-16 21:57:48 +03:00
Jeff Young
f7bef5e09b
Generalize EnhanceAttr() function.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17735
2024-05-16 16:28:13 +01:00
Alex Shvartzkop
2179685dd2
STEP export: Use TDocStd_XLinkTool to copy model with colors instead of our DIY routine.
...
Now supports older OCCT versions.
Also puts components at a higher level in the hierarchy.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17549
2024-05-16 13:01:40 +03:00
Jeff Young
a4583fdbc1
Separate out selection processing for dragging footprints.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18010
2024-05-16 10:27:54 +01:00
dsa-t
e2294a769a
Revert "STEP export: Use TDocStd_XLinkTool to copy model with colors instead of our DIY routine."
...
This reverts commit f735c9bdc2
2024-05-15 22:55:19 +00:00
Alex Shvartzkop
f735c9bdc2
STEP export: Use TDocStd_XLinkTool to copy model with colors instead of our DIY routine.
...
Also puts components at a higher level in the hierarchy.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17549
2024-05-16 01:33:06 +03:00
Jeff Young
498d2c9db1
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
2024-05-15 14:11:11 +01:00
Alex Shvartzkop
18fde2b9cb
Fix background transparency option in kicad-cli pcb render.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17865
2024-05-15 14:46:53 +03:00
Jeff Young
20b2e11f21
Only toggle net selection when coming from hotkey.
...
(The context menu has separate commands for highlight
and clear highlight.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17709
2024-05-15 12:44:33 +01:00
Jon Evans
ea4ade7350
Fix broken setter
2024-05-14 23:13:31 -04:00
Jon Evans
e16130a02c
Move pad and via properties into PADSTACK
2024-05-14 20:57:56 -04:00
Jon Evans
c800fb790d
Start unifying padstack properties
2024-05-14 20:57:56 -04:00
Alex Shvartzkop
0e58f1bad4
Improve approximateLineChainWithArcs algorithm.
2024-05-14 18:07:53 +03:00
Alex Shvartzkop
e71789bab0
Minor alignment fixes in Plot dialog and Common settings.
2024-05-14 17:44:16 +03:00
Alex Shvartzkop
798db3b5c7
Improve "Selected file contains multiple footprints" string.
2024-05-14 16:04:05 +03:00