Seth Hillbrand
d2db96886d
Add logging and area check to tesselation
...
Logging is useful when we find an area that cannot be triangulated.
This will be used to generated test cases.
Skipping minor untesselated areas means that the polygon will still be
considered fully tesselated (and not sent back again and again) even if
the tesselation misses an area less than the configured limit.
Currently, this is 31^2nm.
(cherry picked from commit 7e7fec69f6
)
2024-03-28 13:10:43 -07:00
Seth Hillbrand
3d4a7c7c3f
Update triangulation
...
(cherry picked from commit 4f03bb2fb6
)
2024-03-28 13:10:43 -07:00
arturo182
d46139d5e3
kicad_advanced: Make OCE tesselation deflection configurable
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17168
(cherry picked from commit 41147dc3b3
)
2024-03-28 13:10:43 -07:00
Seth Hillbrand
40f938dc75
Sort netnames in properties panel
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15590
(cherry picked from commit c3a5b92ed0
)
2024-03-28 13:06:18 -07:00
JamesJ
30dbafaf7c
Use bulk BOARD_LISTENER calls following undo or redo operations
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17561
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17420
(cherry picked from commit f51e775f26
)
2024-03-24 19:39:25 +00:00
Alex Shvartzkop
05dedbd892
Fix spelling mistake.
...
(cherry picked from commit bd59fb7768
)
2024-03-23 18:43:47 +00:00
Alex Shvartzkop
c0dba1e00d
Don't print unnecessary digits after decimal point for imperial units.
...
1 nm = 0.00003937 mils = 0.00000003937 inches,
So there's no reason to print more decimal places than 5 for mils and 8 for inches.
Related: https://gitlab.com/kicad/code/kicad/-/issues/15539
(cherry picked from commit 93581607a8
)
2024-03-23 18:40:11 +00:00
JamesJ
cc3e57b52f
Don't re-highlight nets on every bulk segment change in net inspector
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17068
2024-03-23 15:35:21 +00:00
Alex Shvartzkop
70a6697c16
Fix warning due to unused angle in EasyEDA Pro schematic parser.
...
(cherry picked from commit 1c7e3871b5
)
2024-03-23 14:52:05 +00:00
wh201906
869f30e291
Add toggleHV45Mode item to the measure tool's context menu
...
The behavior of the measure tool is influenced by the
horizontal/vertical/45-degree mode, but the context menu of the measure
tool lacks an option to toggle this mode. In contrast, the drawing
tools are also affected by this mode, and their context menu has the
item to toggle this mode.
(cherry picked from commit 806daecf85
)
2024-03-23 13:33:32 +00:00
Jeff Young
4c78652690
Ignore graphic shapes that implement netties.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17223
(cherry picked from commit 88c1fa3e26
)
2024-03-23 13:19:37 +00:00
jean-pierre charras
afcda88ee3
GERBER_JOBFILE_WRITER: use UTF8 encoding according to current specif.
...
Since 2020, non ASCII7 chars are encoded using UTF8 encoding.
A old but incorrect encoding was previously used.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17534
2024-03-22 10:09:47 +01:00
dsa-t
605fe4ce99
Disallow cross-probing when not on Symbol Fields Table Edit tab.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17531
(cherry picked from commit db12f2af49
)
ce625541 Disallow cross-probing when not on Symbol Fields Table Edit tab.
2024-03-21 19:09:34 +00:00
Jeff Young
a3ee317277
Fix copy/pasta in tooltips.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17515
(cherry picked from commit 913e6b47d7
)
2024-03-21 18:19:48 +00:00
Jeff Young
f7bce264bb
Don't take too long worrying about very small exposed areas.
...
(And in particular, don't take forever if the min / 10 results
in step being 0.)
(cherry picked from commit b285545aee
)
2024-03-21 18:19:48 +00:00
jean-pierre charras
dfe6cb7afa
Do not run DRAWING_TOOL::PlaceTuningPattern() inside the footprint editor
...
The footprint editor cannot run the router.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17522
2024-03-21 15:22:13 +01:00
jean-pierre charras
8bdc62c111
Avoid using a nullptr.
2024-03-20 18:35:26 +01:00
Alex Shvartzkop
350687f355
STEP export: add location info to edge add failures.
...
(cherry picked from commit 800ff9ffb1
)
2024-03-19 23:11:20 +03:00
Alex Shvartzkop
3a5a911012
STEP export: handle small segments connecting two arcs better.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17499
(cherry picked from commit 75037dd1d1
)
2024-03-19 22:55:17 +03:00
Roberto Fernandez Bautista
b40d19eb79
nanodbc: Fix use after free
...
Cherry picked from upstream commit e24383436703c9151af1e22652e7d4dbbb52fc15
e243834367
(cherry picked from commit 69107816f1
)
2024-03-19 18:56:43 +01:00
jean-pierre charras
3e4ca3a1c7
Step exporter: workaround to fix issue for boards with main round outline
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17446
2024-03-19 16:13:13 +01:00
Mark Roszko
663918107e
Add missing text var override to cli gerbers
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17283
(cherry picked from commit d904535a15
)
2024-03-19 14:35:30 +00:00
Mike Williams
1ac1f0445f
prettifier: add newlines to golden samples
2024-03-19 09:46:42 -04:00
Mike Williams
bce982877c
prettifier: add newline to end of file
...
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/17480
2024-03-19 09:46:42 -04:00
Jeff Young
9704543b7a
Don't assume all glyphs are outline with an outline font.
...
Underline and overbar may be stroke glyphs.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17478
2024-03-18 22:20:44 +00:00
jean-pierre charras
f90c3ef075
hotkey selector dialog: accept hotkey using Alt key modifier on Windows.
...
On Windows, Alt key is specific, and the dialog did not accept the modifier
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17453
2024-03-18 18:19:39 +01:00
wh201906
11177bf658
Fix selected item count in the properties panel
...
The code for updating selected item count is skipped if the properties
items don't change.
(cherry picked from commit 3f2e3d89e2
)
2024-03-17 22:27:05 +00:00
Jeff Young
81f55dfc9c
Fix layer swapping for multi-layer items.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17371
(cherry picked from commit 44c14b1935
)
2024-03-17 12:40:58 +00:00
Roberto Fernandez Bautista
c935ef890a
Database library cache: fix memory leak
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17435
(cherry picked from commit 4851b0f1ac
)
2024-03-17 11:41:46 +01:00
jean-pierre charras
71af5b106a
Demos update
2024-03-16 14:55:47 +01:00
jean-pierre charras
d24012bef5
Revert "Demos update."
...
This reverts commit b4131f2575
.
Files from 8.99 were committed by mistake
2024-03-16 14:55:47 +01:00
Wayne Stambaugh
e904731e28
Do not update schematic connectivity for irrelevant property changes.
...
Prior to this change, the schematic connectivity was updated any time a
change was made to a connectable object. Now the connectivity is only
updated when an object change actually affects the connectivity. Other
properties like line width, fill type, custom fonts, etc. will not cause
the connectivity graph to be rebuilt.
The SCH_COMMIT flag SKIP_CONNECTIVITY has been removed. All schematic
objects can test if they are connectable and if there have been changes
to any connection properties that require a connectivity rebuild.
Remove duplicate rebuild connectivity calls from editor control tool.
This was causing the tangling end test to get called four times on every
undo and redo action because the dangling end test is already called in
the connectivity graph calculation code.
Update connectivity when changing label names which fixes an unreported
connectivity bug.
(cherry picked from commit c5a02fc266
)
2024-03-16 09:36:56 -04:00
Mojca Miklavec
dcd304c5d8
Change the platform detection order
...
Make sure that windows-specific getWindowsKiCadRoot() is only called on Windows
(cherry picked from commit 01cb1543bb
)
2024-03-16 12:23:04 +00:00
Jeff Young
8275176792
Report location of FUTURE_FORMAT_ERRORs when reading footprints.
2024-03-15 22:47:00 +00:00
Jeff Young
8589bd3773
Correctly handle locked token for PCB_TEXTBOX and PCB_TABLECELL.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17439
(cherry picked from commit d17151ac1b
)
2024-03-15 22:24:53 +00:00
Jeff Young
c07604bb03
Add autocomplete accept & cancel to the hotkeys list.
...
(cherry picked from commit da2610b93b
)
2024-03-15 22:24:53 +00:00
jean-pierre charras
b4131f2575
Demos update.
2024-03-15 15:41:16 +01:00
jean-pierre charras
b718c228fe
Symbol Editor: do not allow to select fully invisible pins and fields
...
Of course, invisible pins or fields shown by using option Show invisible
pins or Show invisible fields can be selected.
From master branch
2024-03-15 15:03:38 +01:00
jean-pierre charras
3d04d78f76
Symbol Editor do not display bounding box of invisible pins and fields
2024-03-15 15:03:38 +01:00
Yon Uriarte
6ebccdecc6
Responsive: Avoid excessive repaints when toggling a netclass' rastnest visibility.
...
Toggling netclasses visibility toggles the member nets' visibility one by one. Defer redrawing until all toggling is done.
Fixes https://gitlab.com/kicad/code/kicad/issues/17115
(cherry picked from commit 4e8e14ae3a
)
2024-03-15 09:45:09 -04:00
Yon Uriarte
4e8d6de1de
Responsive: OPENGL_GAL::DrawArc reserve linequads to reduce drawing time
...
(cherry picked from commit 77576e1a80
)
2024-03-15 09:45:09 -04:00
Yon Uriarte
8b281b4d1c
Performance: Cache BOARD::GetMaxClearanceValue
...
(cherry picked from commit fe1c73ed7c
)
1b35a512 Performance
2024-03-15 13:34:19 +00:00
Wayne Stambaugh
8ce12fb1af
Fix Eagle footprint library QA test failure.
...
Unfortunately the KiCad library I/O does not unescape file names so do not
escape them in the Eagle board plugin.
(cherry picked from commit cf97432833
)
2024-03-15 07:59:20 -04:00
Wayne Stambaugh
9e4efe5d72
Fix Eagle board import when footprint library versions exist.
...
This was a crude hack that appends the library URN ordinal to the name of
the footprint so that it can be correctly looked up by the "element" node.
The Eagle XML DTD does not make it clear how the URN "ASSET_ID" and
"VERSION" are used to look up the appropriate "ASSET_TYPE" so this is a
best guess and seems to work correctly.
The inferred edge clearance dialog had to be disabled when importing third
party boards because on GTK (and possibly other platforms) the dialog would
completely hang KiCad preventing the imported board and possible schematic
from being saved.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12897
(cherry picked from commit 34ec57958d
)
2024-03-15 07:59:20 -04:00
Wayne Stambaugh
ab6c64b49a
Clean up debugging output accidentally left in previous commit.
...
(cherry picked from commit 33566f88a9
)
2024-03-15 07:59:20 -04:00
Wayne Stambaugh
dd71173263
Fix broken paste special keep existing symbol annotations.
...
This was only broken for symbols on the sheet where the symbols were
copied from. The symbol annotation for all sub-sheets was preserved.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17231
(cherry picked from commit 0ff8d21459
)
2024-03-15 07:59:20 -04:00
Alex Shvartzkop
89ed09744b
Fix a crash in PNS zone sync when there's more outlines than triangulated polygons.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17351
(cherry picked from commit b56ee20e22
)
2024-03-15 01:17:50 +03:00
Alex Shvartzkop
ddec1d5317
Disable infinite panning when using XWayland.
...
Cursor warping doesn't work properly in this scenario.
https://gitlab.com/kicad/code/kicad/-/issues/14109
(cherry picked from commit 463b609993
)
2024-03-15 01:17:50 +03:00
Alex Shvartzkop
50dd6185bb
Do not write alpha to the main framebuffer when performing antialiasing.
...
This allows correct background display when the main framebuffer has alpha.
Noticeable on Wayland with Mesa 24.0.2 Iris driver.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17341
(cherry picked from commit bf6ff5b805
)
2024-03-15 01:17:50 +03:00
Alex Shvartzkop
6df17bba99
Fix rendering/plotting of arcs with tiny angle and huge radius.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17343
(cherry picked from commit 4d66a8ebdb
)
2024-03-15 01:17:50 +03:00