33210 Commits
Author SHA1 Message Date
yw4z a31c95e273 Fix: custom G-codes and wipe tower for plate not moved after using move plate to front and undo (#17569)
Custom G-codes and wipe tower positions are stored by plate index, and reordering plates left them at the old index.

- Moving a plate reorders `wipe_tower_x` and `wipe_tower_y` with it.
- `PartPlateList::remap_custom_gcodes()` re-keys `plates_custom_gcodes` by plate ID after a plate move, a plate deletion and an undo/redo jump. Entries of a plate that an undo removes are kept and restored when the plate comes back.
- Undo/redo restores every changed wipe tower position instead of only the first.
nightly-builds
2026-11-22 19:35:38 -06:00
Kris Austin 1281de4cdc Comment and wait for the author when a PR gets the see guide label (#17814) 2026-11-22 19:08:17 -06:00
Kris Austin 5c561b17df Add contributor rules for untested PRs, rewrites and ports (#17813)
* Add contributor rules for untested PRs, rewrites and ports

* List missing explanations and mixed changes as reasons we don't review a PR
2026-11-22 19:00:18 -06:00
Lam Wei Lun ec6e124658 Fix main window opening fullscreen instead of maximized on X11 (#17585)
Restore a maximized main window without resizing it on X11

Mutter/Muffin turn a client resize of an undecorated window to exactly the
monitor rect into a fullscreen window, so the main frame came up fullscreen
instead of maximized when the panel reserved no strut (#17191). On X11, skip
SetSize when the saved state is maximized and skip window_pos_sanitize for
maximized or fullscreen windows. Windows and macOS keep the resize, which
sets the normal size Restore Down returns to.

persist_window_geometry also ignored the window name and stored the non-modal
settings dialog under window_mainframe. Use the window's own name.
2026-11-22 18:14:35 -06:00
Arthur Porto 6d563f72c2 Keep arranged objects clear of a compacted prime tower (#17304)
With "No sparse layers" on, Arrange and Fill bed keep objects as far from the compacted prime tower as the slicer's clearance check needs. Objects stay the toolhead radius away, or 4 mm when none of the objects being placed is taller than nozzle_height. Objects taller than the rod clearance are also kept out of the tower's Y span, and the final alignment of the pile is skipped in that case. Placing a newly added object keeps the full toolhead radius.

With the option off, arranging is unchanged.

Fixes #17566
2026-11-22 16:43:49 -06:00
TheLegendTubaGuy f611c3b488 Fix "Line width too small" when the layer height equals the nozzle diameter (#17643)
Skin and skeleton line widths are only validated for Locked Zag regions, the only pattern that prints them. A bridge as wide as the layer is tall is accepted without thick bridges.

Flow::with_cross_section() gave a line shrunk into a round strand a quarter of the cross-section it asked for, using the radius as its diameter. This changes G-code for bridges, overhang walls and support bottom interfaces without thick bridges whenever the bridge flow ratio is low enough to shrink the line to the layer height.
2026-11-22 16:37:27 -06:00
Valerii Bokhan 0a2cdfc1a3 Fix overhang speeds measured against a stale layer after skipped layers (#16861) 2026-11-22 11:41:01 -03:00
Kris Austin 1478735b58 Give the PartPlate test the Windows headers it needs on clang-cl (#17773)
tests/slic3rutils/test_part_plate.cpp includes slic3r/GUI/PartPlate.hpp,
which reaches wx/wxprec.h and so needs the Windows headers first. Without
them clang-cl stops in wx/msw/private.h on WNDPROC, RGB, VK_SHIFT and
GetWindowRect, and the Windows arm64 build fails.

The slicer target has a precompiled header that supplies those headers and
the test target does not, and MSVC accepts the file anyway, so only the
arm64 build breaks. Windows arm64 is skipped on a pull request that has no
build-windows-arm64 label, so the test merged in #17664 without that leg
ever compiling it.

tests/slic3rutils/test_scene_raycaster.cpp is the only other test in this
target that pulls in the GUI headers, and it opens with the same prelude.
2026-11-21 13:42:02 -06:00
Alexander Vander Kelen a8a597c6d5 Fix LAN Bambu printer losing its connection when the cloud server connects (#17769)
The server-connected handler selects the agent's current machine again every time the cloud
server connects. For a LAN printer this makes the Bambu network plug-in unsubscribe the device,
which drops the LAN session that selecting the printer opened. A connect still in flight fails
with "called UnSubscribeDevice". One that already succeeded stays down with no connect result, so
the printer shows as connected while every command fails with -4 and Print fails with -4030.

Since #17086, OrcaSlicer connects the last LAN Bambu printer at startup, so a LAN user hits this
on most starts. A cloud reconnect later in a session drops the session the same way.

The selection is a cloud subscription, so a LAN printer does not need it. Move the re-select into
DeviceManager::reselect_cloud_machine(), which skips a LAN-mode printer and behaves as before for
any other machine.

Fixes #17766
2026-11-21 13:01:33 -06:00
rblumen f2eb53ebaa Keep the cloud login dialog on screen and make it resizable (#17721)
The Orca Cloud and Bambu Cloud login dialog had a fixed size of 650x840 DIP. At 150% scaling on a 1080p screen it was taller than the work area, so its title bar was off screen and it could not be moved or closed.

The size is now clamped to the work area of the display the main window is on, and after centering the dialog is moved to stay inside that area. The dialog is also resizable, and the webview fills it when it is resized.
2026-11-21 13:00:03 -06:00
Kiss Lorand 5bf1571bb8 Fix Move gizmo crash when using Object coordinates with multiple instances (#17642)
Selecting several instances of one object with the Move gizmo in Object coordinates, by clicking them or with Ctrl+A, made get_selected_single_intance() index the instance list with -1 and crash. It now returns nullptr when the selection has no single instance, and the gizmo uses the first volume's instance transform instead.
2026-11-21 10:48:14 -06:00
Arthur Porto fad7f8163e Park the K1, K1C and K1 SE CFS-C filament change inside their 220 mm beds (#17765)
The change filament G-code of the three CFS-C profiles moved to X0 Y245,
the park of the K1 Max's 300 mm bed. Use X42 Y180, as the other 220 mm
K-series profiles and Creality Print's K1C CFS profile do.

Fixes #17677
2026-11-21 10:40:03 -06:00
Surfoo 97e2d0a6e6 Notebook: don't hide a page that is also the page being selected #17189 (#17739)
Prepare and Preview share one page window, the Plater. On every switch between them, wx hid that window and showed it again right away. On GNOME Wayland this unmapped and remapped the GL canvases and triggered a mutter subsurface bug, which left a frozen copy of the Prepare view at the top-left of the window (#17189). Notebook no longer hides the page that is being selected, and switches between other tabs are unchanged.
2026-11-21 10:05:50 -06:00
Arthur Porto 4a45621b57 Start a Creality print from the path the printer lists the upload at (#17633)
Upload and Print picked the start command's folder from the model that /info reports, and every
unlisted model got /mnt/UDISK. A Nebula Pad reports the printer it is fitted to, such as
"Ender-3 V2 Neo", and keeps its G-code under /usr/data, so its firmware ignored the start.

Before the start, the host now asks the printer for its G-code file list (reqGcodeFile), as
Creality Print does, and starts the upload from the path listed for it. K1-family firmware answers
retGcodeFileInfo and K2-family firmware retGcodeFileInfo2. A list without the upload is asked for
again until files_reply passes. When the printer doesn't list the upload, the model table decides
as before, and it now includes "Ender-3 V2 Neo".
2026-11-21 09:31:18 -06:00
HanifKoh 65a350a0ce Stop Print Plate Aborting When a Multi-Nozzle Printer Has No Physical Extruder Map (#17664)
A multi-nozzle printer whose profile never sets physical_extruder_map, such as the Snapmaker U1, carries the single-entry default {0}. PartPlate::get_physical_extruder_by_filament_id indexed it by logical extruder, so Print plate read past its end for any plate that used filament 2 or later, and the Flatpak aborted there.

PartPlate's lookup, the printer sync in Plater and the three calibration setups in CalibUtils now read the map through effective_physical_extruder_map. It returns the profile's map when its length matches the nozzle count and the identity otherwise, so printers that ship a full map get the same values as before. The helper moves unchanged from IMEXHelpers to PrintConfig and PresetBundle, and its tests move to test_config.cpp. The G-code paths are unchanged.
2026-11-21 09:21:15 -06:00
TheLegendTubaGuy bbf3836832 Fall back to the Centauri Carbon check for other Elegoo Link printers (#17587)
Since 2.4.0, Elegoo Link only tried OctoPrint for presets whose printer_model doesn't start with "Elegoo Centauri", so a Centauri Carbon on a custom preset failed Test and upload with a 404. Those presets now try OctoPrint first and fall back to the Centauri Carbon check and upload, as 2.3.2 did. When both checks fail, Test and upload report the OctoPrint error. Elegoo Link now calls OctoPrint's upload after its own check, so `/api/version` is requested only once. Centauri Carbon and Centauri Carbon 2 presets are unchanged.

Fixes #17570
2026-11-21 08:48:06 -06:00
yw4z f78db404e9 Fix: uninitialized Pressure Advance value in G-code preview (#17746)
`GCodeProcessor::m_pressure_advance` was not set in `reset()`, so G-code without a pressure advance command showed a random PA value in the preview. It is now reset to 0 with the other per-move state, and a test checks that a reset processor does not keep the previous G-code's value.
2026-11-21 08:39:29 -06:00
AsTechEvolves 3bc32c8b04 Send dialog no longer blocks non-Bambu printers whose model name differs from the model id (#17519)
BUG - save the preset's model id, not its name, as a non-Bambu printer's type and repair saved entries in GUI_App::select_machine
2026-11-21 08:35:49 -06:00
Warren GreenandClaude Opus 5.5 1174b39004 Speed up slicing without changing the G-code of a fresh slice (#17335)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 10:59:12 -03:00
Ian Chua 5a1ffc6a63 fix: correct windows process audit test expectation (#17757) 2026-11-21 19:30:47 +08:00
Ian Chua 84f199cb04 fix: correct windows python audit format (#17697) 2026-11-21 17:25:55 +08:00
TheLegendTubaGuy 49b84637ee Fix Stack Overflow When Nesting Clipper2 Results With Cyclic Splits (#17592)
Backport PolyClipping/Clipper2 f97d65d. CheckSplitOwner descended into an
emptied OutRec's splits without the recursive_split guard, so emptied
OutRecs that referred to each other recursed until the stack overflowed.

Fixes #17584
2026-11-20 22:07:36 -06:00
Kris Austin ced396fedc Pin the Flatpak wxWidgets source by commit alone (#17743)
flatpak-builder checks that a named branch's tip is the pinned commit, so the source download failed as soon as the fork's v3.3.2 branch moved past b44c39c1. Both Flatpak jobs stopped with "Git commit for branch v3.3.2 is 89844cb1..., but expected b44c39c1...".

#17742 fixed the same breakage in the CMake deps recipe, which the Flatpak build does not use. The manifest carries its own pin, so it needed its own fix.

Dropping the branch keeps the commit pin and leaves nothing that goes stale when the fork moves. kde-extra-cmake-modules in this file already pins itself the safe way, with an immovable tag plus its commit. disable-shallow-clone makes git fetch full history, which it needs to check out a commit that is no longer a branch tip.

Also rewords the comment #17742 left in deps/wxWidgets/wxWidgets.cmake. No build change there.

Reported in #17740.
2026-11-20 17:19:27 -06:00
Kris Austin c4096cadb6 Clone the wxWidgets fork fully so a pinned commit stays reachable (#17742)
GIT_TAG pins a commit, but GIT_SHALLOW fetches only the fork's branch head, so the
checkout failed as soon as the fork moved past that commit. Every source build broke
at the wxWidgets download step with "unable to read tree", including distribution
packages built from the 2.5.1 tarball and our own deps jobs on a cache miss.

Pinning the new head instead would work until the next time the fork moves. A full
clone keeps the deliberate pin and cannot go stale.

Fixes #17740
2026-11-20 16:51:19 -06:00
Rodrigo Faselli cdd695117f Fix cone seam pcurve selection in OCCT (#17720)
Since the OCCT 8.0.1 update, some STEP files imported with cone faces missing. OCCT told the two seam pcurves of a cone apart with a 1e-7 threshold, which fails when the neighboring pcurves end slightly past the seam. The OCCT patch now picks the closer pcurve. The #16290 fix is kept.

Also stops admesh from merging unrelated edges of open meshes from STEP and SVG import on ARM64. A mesh built in memory reaches the nearby check with a tolerance of 0, and dividing by it was undefined. The check now returns early, which is what x86-64 already did.
2026-11-20 16:05:58 -06:00
HanifKoh 0d7bea5763 List and Load Resource Textures Whose Paths Pass MAX_PATH on Windows (#17730)
* Test Resource Textures Whose Paths Pass MAX_PATH

* List and Load Resource Textures Whose Paths Pass MAX_PATH on Windows
2026-11-21 05:44:04 +08:00
HanifKoh 1e1543f006 Read the CFS Lite Slots a SPARKX i7 Sends After Reporting No CFS (#17702)
A SPARKX i7 with a CFS Lite reports "cfsConnect": 0 and then answers the slot query. The query stopped at that status, so filament sync found no slots. It now keeps reading for a short no-CFS deadline and treats the printer as having no CFS only when no slots arrive.
2026-11-21 05:41:42 +08:00
HanifKoh ea4927b601 Trim Trailing Zeros at the Decimal Separator wxWidgets Wrote (#17704)
* Trim Trailing Zeros at the Decimal Separator wxWidgets Wrote

double_to_string formats with wxNumberFormatter, which writes the UI locale's decimal separator, but trimmed after the C locale's separator. When the two differ, as reported on macOS in Czech and Russian, nothing was trimmed and fields showed 0.2000. Trim at wxNumberFormatter::GetDecimalSeparator() instead.

* Parse Point Fields Whichever Decimal Separator They Show

Point fields write X and Y with the UI locale's decimal separator but read them back with ToDouble, which uses the C locale's. When the two differ, any value with decimals fails with Invalid numeric and resets. Read them with string_to_double_any_separator, which converts the other separator to the C locale's before ToDouble, so every input ToDouble accepted before still parses.
2026-11-21 05:41:23 +08:00
Ian Chua 0c62aa085e feat: Install Python plugin wheels with uv (#17281)
* feat: initial migration to let UV install plugins for .whls

* fix: clang-tidy

* Simplify plugin wheel loading through uv

* fix: use legacy loader for plugins loaded with legacy method

* fix: use same unzip name as old one

* fix: keep legacy plugins on the same path

* fix: unit tests

* fix: allow epoch versions in wheel filenames

* fix: clang-tidy

* fix: pass Unicode paths to uv on Windows

* fix: cleanup

* fix: support Windows long paths when installing wheel plugins

* fix: recognize uppercase .whl extensions in plugin discovery and dependencies

* fix: keep plain import paths for short namespace and compiled packages

* refactor: fold duplicate wheel import and cache migration branches

* fix: treat an absent package directory as a single-module import

* fix: windows long path deletion (#17703)

* fix: handle long Windows plugin cleanup paths

* fix: warn when plugin deletion removes no files
2026-11-20 14:51:42 +08:00
HanifKoh 9d6ba7eae2 Keep Tree Hybrid's Expanded First Layer on the Bed (#17700) 2026-11-20 13:52:04 +08:00
HanifKoh 3efe401d8e Give the Section View's Cut Face the Infill Colour in the Solid Model (#17701)
The solid model capped the section view's cut with the body's wall colour, while the two layer caps already took the infill's. The section cap now takes the infill colour sampled over every layer the solid stands for, as the body takes the wall colour, falling back to the body's colour where a body has no infill. Views that colour by filament are unchanged.
2026-11-20 13:50:36 +08:00
Noisyfox 8db30fdb30 Fix Expat MSVC builds with UTF-8 source encoding (#17596)
Expat 2.10.0 has UTF-8 quotes in a comment in random_rand_s.c. cl.exe reads source files in the system code page, so on code page 936 it reads the line break as part of a double-byte character. The next line becomes part of the comment and the build fails with C1020.

Pass /utf-8 to Expat's C compiler when building with MSVC, keeping the existing C flags.
2026-11-19 20:53:54 -06:00
Rodrigo Faselli a53663cddf Patch Boost.Locale to configure with CMake 4.5 (#17725) 2026-11-19 21:21:25 -03:00
Ian Chua 5cf5ef881e fix: audit process by executable (#17671)
* fix: audit process execution by name, ignore args

* test: fix stale test expectations

* fix: resolve Windows subprocess audit targets from command line

* fix: preserve quoted Windows paths in process audit grants

* fix: grant shell permissions for os.system commands

* fix: require grants for all possible os.system shells

* fix: clarify process permission scope in prompts

* refactor: simplify audit target handling

* fix: handle ambiguous Windows process commands

* test: fix for ambigous calls on windows
2026-11-20 05:24:22 +08:00
Kris Austin 7932cd23f7 Remove the stale label as soon as someone comments (#17709)
stale.yml only removes the label when its daily run gets back to an
issue or PR, which can take a few days. A new workflow removes it when
a user comments on an open item that has the label.

The stale bot also checks exemptions before activity, so a stale item
that later gets an assignee or milestone, becomes a draft, or loses
"wait for response" is never checked again and keeps its label. A new
step in stale.yml removes the label from those.
2026-11-19 08:43:40 -06:00
Kris Austin 736d07ade9 Let the stale bot handle feature requests and run more per day (#17708)
Enhancement issues are no longer exempt. Many old feature requests may
no longer apply, and the stale notice lets the author say whether they
still want it. The stale and close messages now fit both bugs and
feature requests.

operations-per-run goes from 300 to 800. At 300, one pass over the open
issues and PRs took 7 runs, so a reply could keep the stale label for
up to a week. 800 still keeps each run under GitHub's limit of 500
comments an hour.
2026-11-19 08:14:46 -06:00
Lam Wei Lun 1de01873ae Fix mouse ear brim missing at a rounded corner depending on object orientation (#17163)
Mouse ear placement no longer depends on where the outline starts. The old code simplified the outline with Douglas-Peucker, which is anchored on its first vertex, so rotating a part changed which rounded corners got an ear.

make_brim_ear_points() now measures the turn at each vertex over a window of arc length on both sides, and doubles the window while the outline keeps turning. Corners with large fillets now get an ear at the default settings. A candidate whose window already reached a placed ear is dropped, so a sharp corner next to a curve gets one ear. The Brim Ears tool's Auto-generate uses the same function.

Behavior change: a smooth closed outline such as a disc gets no ears at the default 125 degree max angle. Raising the max angle to 135 or more still gives it ears.

Fixes #17119
2026-11-19 08:01:51 -06:00
Arthur Porto 14f52a4a27 Show the prime volume of each filament where the Type 1 prime tower takes it (#17424)
The Type 1 prime tower purges the prime volume of each filament, and no tab showed it, so on Bambu Lab printers the process Prime volume looked like the setting but changed nothing. The filament's Multimaterial page now has a Prime volume group with Filament change, and Hotend change on a printer whose extruder holds more than one nozzle, such as the H2C. On a Type 1 tower the process Prime volume is greyed out. Slicing is unchanged.

Fixes #16350
2026-11-19 07:56:22 -06:00
yw4z c51687243f Fix plate skirt start point not saved to 3mf (#17457)
Save and load the plate's skirt start angle in the project file. Before this, a skirt start point set in Plate Settings was lost on save. Adds a round-trip check to the plate test in test_3mf.cpp.
2026-11-19 07:52:31 -06:00
yw4z c56506d68b Fix: Non positive volumes of selected or non selected object visible on Texture displacement gizmo (#17656)
The Texture displacement gizmo made every volume visible again on each frame, so modifiers, negative volumes and support blockers/enforcers from other objects and instances showed through. It now restores only the selected instance, and hides the selected object's non-part volumes while the gizmo is open.
2026-11-19 07:41:43 -06:00
Arthur Porto 571386db57 Load the Device tab page only once the tab is opened (#17580)
Load the Device tab page only once the tab is on screen

The idle prebuild of the main window panels builds the Device tab's web
view while the tab is hidden and loads the print host page into it at
once, because a new panel counts as shown. The page, and the camera
stream it opens, then run from startup until the app closes, whether
the tab is ever opened or not. load_url() now defers the page unless
the view is on screen, as it did before the prebuild.
2026-11-19 07:33:10 -06:00
Ian Bassi fe0094a5a3 Open the preview on the view each calibration tests
After slicing a calibration, the preview shows the value it varies:
Pressure Advance for the PA line, pattern and tower, Temperature for the
temperature tower, Flow for the max flowrate and flow rate tests, Speed for
VFA and Jerk for the cornering test. Retraction and input shaping have no
matching view and keep the normal default.

It goes through apply_default_view_type, so it takes precedence over the
default view type preference and a view picked by hand survives a reslice.

The flow rate test sets no calibration mode on the print, because that would
change its G-code, so the Plater remembers it until other files are loaded.
2026-11-19 08:24:50 -03:00
Ian Bassi 882175b2ae Start the max flowrate test's spiral at full flow (#17699) 2026-11-19 08:21:53 -03:00
Kim Gunwoo 4f71398a0f Fix korean translations for left and right extruder (#17612)
* Fix korean translations for left and right extruder

Updated translations for 'left extruder' and 'right extruder' to use '압출기' instead of '익스트루더'.

I showed 'extruder' and 'Extruder' has different translation in Korean. So i firstly fixed it

* Update Korean translations for extruder terms

Thanks for the review and for pointing out the remaining inconsistencies!

I've updated the eight additional strings in the same PR to use "압출기" consistently with the Korean localization.
2026-11-19 02:47:30 +03:00
Ian Chua 3838002bc8 feat: serialize permission grant for create and delete files (#17478)
* feat: serialize permission grant for create and delete files

* test: expect saved copytree permissions in hardlink audit test

* refactor: simplify plugin filesystem and permission handling

* fix: show triggering paths in plugin permission prompts

* fix: require subtree consent for recursive plugin deletes

* fix: tests

* fix: Windows short-path aliases in plugin audit checks

* fix: correct plugin folder permission display and consent text
2026-11-18 17:50:29 +08:00
HanifKoh 0c80c412a1 Put Prusa CORE One Overhang Speeds in the Right Slots (#17605)
PrusaSlicer's overhang_speed_0..3 count from the steepest overhang
(0% overlap) up, while Orca's overhang_1_4..4_4_speed count from the
mildest. The MK4S base preset maps them that way (_3 -> 1_4, _2 -> 2_4,
_1 -> 3_4, _0 -> 4_4), but the CORE One process presets put
PrusaSlicer's _2 and _3 overrides in the 50% and 75% slots, and the
CORE One L presets put _3 in the 50% slot. As a result steeper
overhangs could print faster than milder ones, e.g. 0.20mm STRUCTURAL
@CORE One 0.4 ran 25% overhangs at 30 mm/s and 50% overhangs at
45 mm/s.

Rename the keys to the slots the mapping gives, without changing any
value. Five CORE One MMU3 presets also wrote their own overhang speeds
in a mixed-up order, including 0 (no slowdown) for the mildest
overhangs; drop those keys so they inherit their corrected CORE One
parents. PrusaSlicer has no separate MMU3 print presets.
2026-11-18 16:40:58 +08:00
HanifKoh 4aaef535e6 Skip Arachne Toolpaths When the Voronoi Diagram Cannot Be Repaired (#17600)
* Skip Arachne Toolpaths When the Voronoi Diagram Cannot Be Repaired

When the Voronoi repair fails, the skeletal graph built from the
diagram has edges without twins, and the later stages dereference
them. Leave the graph empty and log an error instead, so that outline
gets no toolpaths rather than crashing the slice.

* Cast the Far Sliver Coordinates to `coord_t` in the Unrepairable Voronoi Test

On macOS int64_t is long long, so a literal of type long matched no Point constructor exactly and the call was ambiguous.
2026-11-18 14:04:54 +08:00
HanifKoh d3992c2288 Bound Out-of-Range filament_map and physical_extruder_map Values (#17476)
* Treat a filament_map Nozzle Outside the Printer as Nozzle 1

A filament_map entry of 0, a negative number or a number above the
nozzle count made Extruder::extruder_id() wrap or run past the end, and
print_machine_envelope then took the std::max over the per-extruder
machine limits out of bounds on a flavour that emits them.

Print::apply now treats an entry outside [1, nozzle count] as nozzle 1,
before the variant expansion and the config snapshot, and logs it once.
After the clamp the slicing engine only sees in-range values. It works
on this print's copy of the config; readers of the plate or project
config are not changed, and in-range maps are left alone.

* Skip a physical_extruder_map Entry Outside the Per-Nozzle Table on Export

The first-filament table built for the start G-code is sized by the
nozzle count, and the export wrote it at the index named by
physical_extruder_map. An entry outside that range corrupted the heap,
and a negative one aborted or hung the export.

The value is a firmware tool number that is also emitted elsewhere, so
it is left as it is; only the write into the table is bounded.

* Treat a filament_map Nozzle Outside the Printer as Nozzle 1 in the CLI

With --filament-map-mode Manual on a multi-nozzle profile, the CLI
indexed the per-nozzle unprintable-filament sets, and shifted the
per-filament printable status, with the raw filament_map value. A value
of 0, a negative number or one above the nozzle count read out of bounds
and crashed before the print was configured.

The checks now use a local copy of the map in which an entry outside
[1, nozzle count] is nozzle 1, the same policy Print::apply applies.
In-range maps are unchanged.
2026-11-18 14:04:32 +08:00
HanifKoh 8ebb0a9a2b Stop Arachne's Outline Simplification From Placing Vertices Metres Away (#17599)
simplify() may move a vertex to the intersection of its neighbouring
lines, guarded by a check that the point stays near them. The check
squared the distance in int64, which overflows when nearly parallel
lines meet more than about 3 m away, so the far point was accepted.
The broken outline gave a Voronoi diagram the repair could not fix,
and SkeletalTrapezoidation then dereferenced an edge without a twin.

Compute the squared distances in double.
2026-11-18 12:58:45 +08:00
Kris Austin 428a8fcc91 Arrange items almost as wide as the bed again (#17416)
* Arrange items almost as wide as the bed again

An arrange spacing lets a rectangular bed grow by the part of the spacing
past every item's brim or tree support, the way printing by object
already grows it. The spacing is kept in full and a part that fits the
bed is not refused for it. The bed does not grow when an item that can
be placed would keep less inflation than the growth, beyond the EPSILON
slack, so a part that fills the bed may sit up to EPSILON past its edge,
within BuildVolume::BedEpsilon. A round bed never grows for a spacing,
since moving its points along each axis would grow it unevenly.

The cap on an item's inflation measures the item as the nester packs it,
inflated with square joins and turned, so it holds for an item turned to
the Y axis or by hand, and it leaves room for the skirt. An item too big
for the bed keeps its full inflation, so it is still refused on a grown
bed, and it no longer sets the bed margin given back to the other items.
Printing by object, this keeps the 5 mm margin for the placed objects
when another one is refused.

The arrange bed keeps EPSILON on each side of the largest item for every
print sequence, since the nester cannot place an item beside one that
fills the bed exactly.

The skirt room reads a percent first layer line width against the
nozzle diameter instead of as millimeters, and accepts a width stored as
a plain number.

update_arrange_items() runs the arrange setup in the order it depends on
for the arrange job and the CLI.

* Arrange items the nester has to turn

With rotations allowed the nester turns an item that does not fit as it
lies, even onto the bed's diagonal, so no item counts as too big. An item
that has to turn is measured at an angle where it fits along the bed's
axes, if there is one, so it keeps its spacing.
2026-11-17 22:07:31 -06:00