Commit Graph
33591 Commits
Author SHA1 Message Date
Ian Bassiandzackaree-shen 141aeb8a00 Expand the first layer of a tree support raft once
The non-organic tree support raft was grown by the first layer
expansion on every raft layer, and its first layer by that expansion a
second time. The default 2 mm put the first layer 4 mm out, and a
20 mm setting 40 mm. The second expansion came with BambuStudio's fix
for this setting, which assumes the fixed 3 mm grip that Orca had
replaced with the setting. Restore that grip, so the setting widens the
first layer only, as it does for the other supports.

Ported from Snapmaker/OrcaSlicer@0e572ec63a

Co-authored-by: zackaree-shen <zackary_shen@qq.com>
2026-11-30 14:11:14 -03:00
Ian Bassiandzackaree-shen 553040c43c Regenerate supports that depend on the position of a moved object
Moving an object only invalidated its skirt, brim and G-code. Tree
supports are clipped to the bed shape at the position of the instance,
and every support avoids the bed exclusion volumes at that position,
so after a move they kept the old position until a setting changed.
Regenerate supports in those cases; normal supports on a bed without
exclusion volumes are still kept.

Ported from Snapmaker/OrcaSlicer@4e0aa3acc1

Co-authored-by: zackaree-shen <zackary_shen@qq.com>
2026-11-30 14:11:14 -03:00
Ian Bassiandlhx dc86c5fbf0 Compensate every piece of a polygon that simplification splits
Elephant foot compensation measured contour widths on the polygon
simplified with SCALED_EPSILON, and kept only the first piece the
simplification returned. Where the simplification split a polygon, for
example at walls thinner than that tolerance, the other pieces were
dropped from the first layer; where it returned nothing, front() was
undefined. Compensate each piece instead. A polygon that simplifies to
a single piece is compensated exactly as before.

Ported from Snapmaker/OrcaSlicer@3412141cc7

Co-authored-by: lhx <luohaoxuan@snapmaker.com>
2026-11-30 14:11:14 -03:00
Ian Bassiandlhx 04c29af445 Keep internal bridges inside the area of their own filament
An internal bridge is expanded to anchor it, and the expansion could
reach into a neighbouring region. That area was then cut out of every
region and kept only in the bridge's own region, so on painted or
multi-filament objects part of another region printed in the bridge's
filament. On layers whose regions use more than one solid infill
filament, clip each bridge to the fill area of its own filament.
Layers with one filament are unchanged.

Ported from Snapmaker/OrcaSlicer@b070bcfaff

Co-authored-by: lhx <luohaoxuan@snapmaker.com>
2026-11-30 14:11:14 -03:00
Ian Bassi a28a42dc17 Label each overhang speed with the overhang it applies at (#18038) 2026-11-30 14:06:23 -03:00
HanifKoh 8ce5eb7b12 Bend Text Along a Circle With a Curve Slider in the Text Tool (#17943)
* Add `bend_to_arc` to Lay Aligned Text Along a Circle

* Lay Text Along a Circle When the Style Has an Arc Radius

* Save the Text Arc Radius in Projects and Styles

* Add an Arc Radius Input to the Text Gizmo

* Include What the Emboss Tests Use

* Keep Text Straight When Its Letters Do Not Fit Inside the Circle

* Draw the Arc Radius Input in the Advanced Column and Process Every Edit

The input used the helper of the Height and Depth rows, which draws in
the main column, so in the Advanced section it sat on top of its own
label. It is now drawn in the Advanced column like the sliders around
it, and the Height and Depth helpers are back to what they were.

The saved style's radius is shown at the same scale as the value, so on
a scaled object the label is not marked as changed and Revert goes back
to the style's radius.

Every edit now starts a job. Skipping the job when the volume already
had the typed radius lost the value while a job for an earlier keystroke
was still running: typing 25 over 25 passes through 2, and the 2 landed.

* Keep the Arc Radius Exact on Revert and Skip Edits That Change Nothing

Revert handed the style's radius back through the shown unit, which in
inches or on a scaled object can miss it by a rounding: the style stayed
marked as changed and picking another style asked about discarding it.
The radius now stays in mm and is converted only for the field.

An edit that changes neither the last request nor the volume starts no
job, so holding + at the limit no longer adds undo steps. An edit that
returns to the volume's radius while an earlier keystroke's job is still
running starts one, as before.

"*1e39" typed into a field showing zero gave a radius that is not a
number. It now counts as no radius.

* Name the Arc Radius Before the Edit for What It Is

It is the radius before this frame's edit, not always what the last job
was started with.

* Give the Smallest Radius a Text Fits On

* Bend Text With a Curve Slider and a Linked Radius

* Apply a Typed Radius Equal to the One Shown

* Space Letters Along Their Tops When the Text Bends Inward

* Let Short Text Close Into a Ring With the Curve Slider

* Hide the Curve Tooltip While the Slider Is Dragged
2026-11-30 18:31:21 +08:00
SoftFever 66fea0a150 Publish the Microsoft Store package from the release workflow (#18025)
Maintainers can tick "msstore_only" when running "Publish to draft release" to
send a build's x64 and arm64 MSIX packages to the Microsoft Store as one
submission, instead of uploading them in Partner Center by hand. With the
option off, the GitHub draft release is published as before.
2026-11-30 17:08:54 +08:00
HanifKoh 083297d9a5 Suggest a Cheaper Preview Drag Mode When the Preview Stays Slow, and Add the Drag Modes to the View Menu (#17890) 2026-11-30 15:34:21 +08:00
Martin Lablans d2f99d04c2 Snapmaker U1: fix the generic 0.2 mm filament profiles (#17760)
The generic U1 0.2 mm filaments used library values for max volumetric speed in the Standard column and for multitool ramming flow and volume. That meant up to 25 mm³/s through a 0.2 mm nozzle. Set all three to Snapmaker Orca v2.4.1's 0.2 mm values in both variants, and bump Snapmaker.json to 02.04.00.23.
2026-11-29 15:03:59 -06:00
yw4zandHanifKoh fa18a7786e Windows: stop WebView2 / Crashpad processes piling up during debugging (#16784)
* Update OrcaSlicer_app_msvc.cpp

* Update src/OrcaSlicer_app_msvc.cpp

Co-authored-by: HanifKoh <76276251+HanifKoh@users.noreply.github.com>

* Update src/OrcaSlicer_app_msvc.cpp

Co-authored-by: HanifKoh <76276251+HanifKoh@users.noreply.github.com>

---------

Co-authored-by: HanifKoh <76276251+HanifKoh@users.noreply.github.com>
2026-11-29 21:27:49 +08:00
Hanif Koh 95893d3b20 Size a Two-Nozzle Type 2 Tower From What It Purges
The prime tower estimate added a cylinder of filament, the filament change length
times its cross-section, to the purge of every two-nozzle printer. Only the Type 1
tower purges that length, and it sizes itself from its own plan, so the term only
ever reached Type 2 towers, which never purge it. On the FELIX Food Double, whose
syringes are 31 mm wide, the tower placeholder was about 167 mm across with its
brim, for a tower that prints at about 16 mm.

The term also hid that a Type 2 change purges at least the filament's minimal
purge, which can be more than the prime volume. Each change is now counted at the
larger of the two, as the Type 2 planner does, so the estimate does not fall
below the printed tower.
2026-11-29 03:16:55 +08:00
Hanif Koh 5131f4fc8e Work Out the Solid Model's Flat Face Cut-Off From Each Object's Layer Height and Walls 2026-11-29 03:10:00 +08:00
Hanif Koh dac25fd5b0 Give the Solid Drag Model's Flat Faces the Top and Bottom Surface Colours 2026-11-29 03:10:00 +08:00
Rodrigo Faselliandyw4z 7f9bd80ebd Add vertical gap between setting rows on Linux (#17801)
Co-authored-by: yw4z <yw4z@outlook.com>
2026-11-28 15:27:04 -03:00
yw4z 6dae9c26cf Log bed exclude area status at the right level instead of a false error (#17870)
* Update PartPlate.cpp

* cover all scenarios

* Update PartPlate.cpp
2026-11-28 17:13:02 +03:00
yw4zandKris Austin ac24df6c16 Use labeled MultiSwitch for ortho controls in painting tools and add missing ones (#17883)
* init

* use helper for control on PainterBase

* fix tidy

* update

* update

* simplify changes and apply min width for switch buttons

* match design colors

* add tooltip for control

* add mcp and test cased for control

* update comment

* Update ImGuiWrapper.hpp

* Update test_imgui_wrapper.cpp

* Update src/slic3r/GUI/ImGuiWrapper.cpp

Co-authored-by: Kris Austin <kris.austin@gmail.com>

* remove unrelated comment

Co-Authored-By: Kris Austin <kris.austin@gmail.com>

---------

Co-authored-by: Kris Austin <kris.austin@gmail.com>
2026-11-28 17:12:25 +03:00
Hanif Koh c7981ba94c Harden the Sliced G-code Comparison Against Broken Artifacts and Comments
A corrupt or encrypted zip member, or a bad file name, is now an
artifact error, so a broken artifact gets the "made no comparison" note
instead of stopping the comment, and the report step writes a report
whatever fails. The fence also drops format, C1 and line separator
characters. The comment is posted before the old one is deleted,
comments without a user are skipped, a body GitHub returns with other
line ends counts as unchanged, and a download redirect must be https.
The commenter's concurrency group is on the job, so the skipped wakes of
other labels cannot take the place of a pending real one.

New tests cover the bounded read of a member, a run on another branch,
other bot comments, comments past the first page, the newest run of a
commit, and the token never reaching the storage host.
2026-11-28 22:08:48 +08:00
Hanif Koh 2fa02ab758 Let PR Authors Ask for the Sliced G-code Comparison With the check-gcode Label
The label bot accepts check-gcode and says when the comment will come:
when the build finishes if its app token starts workflows, otherwise
when the running build finishes or after the next push that builds.
CONTRIBUTING.md says what the label does and which pull requests can
get a report.
2026-11-28 22:08:48 +08:00
Hanif Koh 49252d14b7 Post the Sliced G-code Comparison on Pull Requests With the check-gcode Label
check_gcode_comment.yml runs when a pull request's Build all run or a
check-gcode label run completes, finds the open pull requests from that
branch, and posts the report of the newest finished build on each one
that has the label. check_gcode_label.yml only wakes it when the label
is added after the build finished; it needs no token and runs nothing.
Neither uses pull_request_target, which GitHub blocks by default in
public repositories.

Runs are kept only when their head repository and branch are the pull
request's, and the artifact must name the pull request, so another fork
at the same commit cannot have its report posted. A run waiting for
approval counts as not finished. The comment is kept when unchanged,
edited in place when only the commit or the baseline moved, and
replaced otherwise. The report appears only inside a fence nothing in
it can close, errors print their type and HTTP status only, and the
step cannot leave a red check.
2026-11-28 22:08:48 +08:00
Hanif Koh 9dafcc7314 Compare a Pull Request's Sliced G-code With Its Base Branch in the Slice Check
On a pull request, the Slice check now finds the newest build of the
base branch at or before the pull request's base commit that saved
fingerprints, compares them with its own, and writes report.txt into
the gcode-fingerprints artifact and the report into the job summary.
Every build also writes made_with.txt, the fingerprint script's hash and
the runner, so a report warns when the two sides were made differently.

scripts/ci_check_gcode.py reads the baseline's artifact in memory: the
download and each file in it are capped, and a file compressed with
anything but stored or deflate is refused, since a capped read does not
bound bzip2 or LZMA. An error writes its type only, never the text of
the files, and the step cannot fail the job.
2026-11-28 22:08:48 +08:00
Hanif Koh f6adf818ab Save Fingerprints of the Slice Check's G-code as a Build Artifact
The Slice check slices every shipped printer preset on each pull request
build and each push. It now keeps the G-code, fingerprints it with
scripts/gcode_fingerprint.py and uploads the fingerprint file, so the
G-code of two builds can be compared. The clock and the random() seed of
custom G-code are fixed with ORCA_SOURCE_DATE_EPOCH, or every slice that
prints the time would differ from one run to the next.

The two new steps cannot fail the job. Nothing reads the artifact yet.
2026-11-28 22:08:48 +08:00
Hanif Koh fa1bd33511 Print the Comparison as UTF-8 and Fix Two Fingerprint Script Tests
compare now prints its report as UTF-8 with LF line ends on every
platform, as fingerprint already did. Redirected output on Windows uses
the ANSI code page, so the report was not UTF-8 there, and a slice name
outside that code page made compare fail as if its input were bad.
Standard output is switched only when something is written to it, so an
output file and an error message still work without one.

Two tests could not do their job. One created a file name with a
carriage return, which Windows refuses; it now fakes the folder listing.
The standard output test passed on Linux even without the code it
covers; it now prints a name outside ASCII to a Latin-1 standard output.

The docstrings no longer say the config block differs between two runs
of the same sources: it changes when an option is added.

None of this has run on Windows: CI runs these tests on Linux only.
2026-11-28 22:08:47 +08:00
Hanif Koh 5fd70d3301 Add a Script That Fingerprints Sweep G-code and Compares Two Sweeps
OrcaSlicer_profile_validator -s -o saves one G-code file per shipped
printer preset. gcode_fingerprint.py hashes each file without the lines
that differ between two runs of the same sources (the timestamp, the
config block and the object ids taken from a process-wide counter), and
reports which slices changed between two sweeps.

A slice whose output cannot repeat yet (fuzzy skin, random infill
rotation) is listed as not compared. A slice present in one sweep only
is listed and does not count as changed.
2026-11-28 22:08:47 +08:00
Hanif Koh fd94324edb Let ORCA_SOURCE_DATE_EPOCH Fix the Clock and random() Seed of Custom G-code
Custom G-code that prints the time or calls random() gives different
output on every export, so two slices of the same input cannot be
compared. With ORCA_SOURCE_DATE_EPOCH set to a number of seconds since
the Unix epoch, the time variables hold that time in UTC and random()
starts from the same seed. Without it nothing changes.

The standard SOURCE_DATE_EPOCH is not used: packaging shells export it
for every program they start, and it would freeze {timestamp} in the
output file names of anyone launching the slicer from one.
2026-11-28 22:08:47 +08:00
Noisyfox 432b205d91 Mixed filament UI Fixes / Improvements (#17594)
# Mixed Filament List
• Moved Remove all button to left and added wide spacing after it to
prevent accidental clicks. also remove/add order matches with other
section now
• Removed unequal spacing on bottom. so parameter section 8px taller now
• Aligned side margins of mixed filament header with filament comboboxes

**Before**
<img width="401" height="245" alt="20261116_034038_Screenshot"
src="https://github.com/user-attachments/assets/66484308-c2df-495a-b936-cc41f6ab1881"
/>

**After**
<img width="400" height="238" alt="20261116_032653_Screenshot"
src="https://github.com/user-attachments/assets/d1f04b3d-dbd8-433f-aea0-5aa242a6f87e"
/>

# Mixed Filament Dialog
• Matched font colors/sizes
• Matched dialog buttons order (OK/Cancel) with other sections of UI
• Moved add / remove buttons to mixed materials titlebar
• Fixed dialog position while content changes. this keeps UI controls on
screen at same position like add/remove buttons and makes UI more
predictable
• Matched gradient graph background with window background
• Removed leading "Filament .." from rows. combo boxes wider and able
show longer profile names now

**Before**
<img width="425" height="573" alt="20261116_032530_Screenshot"
src="https://github.com/user-attachments/assets/82427c40-7557-4db2-98fd-2e47d196f276"
/>

**After**
<img width="425" height="554" alt="20261116_032521_Screenshot"
src="https://github.com/user-attachments/assets/c7018372-8749-4ce7-ba11-e88489a171e9"
/>

**Before-After: Gradient graph background**
<img width="769" height="222" alt="20261116_034239_Screenshot"
src="https://github.com/user-attachments/assets/46c8b89b-fb50-46ed-b4f0-fc638871c032"
/>

**Before-After: More predictable window sizing and positiioning**

<img width="866" height="816" alt="20261116_034739_Recording"
src="https://github.com/user-attachments/assets/cdc1b81a-37ca-4764-aeda-10a5afa77cdc"
/>

<img width="866" height="816" alt="20261116_034832_Recording"
src="https://github.com/user-attachments/assets/3594a373-6987-4740-b24f-0b9073c60175"
/>

# Decompose Dialog
• Matched font colors/sizes
• Matched dialog buttons order (OK/Cancel) with other sections of UI
• Moved matching color preview to bottom side of target color preview to
make comparisons easier
• Switched to vertical layout for decomposition methods. this fixes
condensed UI and clipping "Material list" text

**Before**
<img width="549" height="403" alt="20261116_032437_Screenshot"
src="https://github.com/user-attachments/assets/3d624b29-c323-4446-89c9-a3abda9d3ffe"
/>

**After**
<img width="463" height="568" alt="20261116_032448_Screenshot"
src="https://github.com/user-attachments/assets/f1e6fa26-91e9-4ca2-ab1f-29ca79bd7ebc"
/>

**Before-After: Card size and clipping "Material list" text**
<img width="355" height="118" alt="20261116_033620_Screenshot"
src="https://github.com/user-attachments/assets/f659a7de-c87a-4880-96eb-141b32ccfd27"
/>

<!--
> A guide for users on how to download the artifacts from this PR.
-->

[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
2026-11-28 21:41:26 +08:00
Fawwaz Lawal deaa63591e fix: stop macOS text replacement rewriting multiline settings fields (#17976)
OSXDisableAllSmartSubstitutions() clears quote and dash substitution
only, so a system text replacement such as <= to ≤ could rewrite a
multiline settings field once it was shown, leaving start G-code that
no longer slices.

Add textctrl_disable_text_replacement() beside the other macOS helpers
in GUI_UtilsMac.mm and call it from TextCtrl::BUILD right after
OSXDisableAllSmartSubstitutions().

Fixes #17914
2026-11-28 19:09:15 +08:00
Avery Bloom cefc5e474e Fix a crash when a Bambu Lab H3C connects (#17974)
In the H3C's status messages, the device.extruder.info entries had no
"filam_bak" key, both while idle and while printing. ParseV2_0 read
njon["filam_bak"] on a const json. With the key missing, that is
undefined behaviour: a debug build asserts, and a release build either
crashed with EXC_BAD_ACCESS or kept running with no extruder data.

Read filam_bak only when the key is there. DeviceManager.cpp already
checks for the key on single-extruder printers, and Bambu Studio added
the same check in bambulab/BambuStudio@d1f121d.
2026-11-28 18:48:55 +08:00
RrrrobertB1992andyw4z 9c0d948575 Add co-extruded colors to the color picker (#17541)
* Add co-extruded colors to the color picker

The color picker could make solid colors and gradients, but co-extruded
filaments (colors side by side along the strand, like dual color silk)
could only be kept, not created or edited.

Solid mode now works like Gradient where multi-color is allowed: its
colors show as blocks with the same - and + buttons. Two or more blocks
are a co-extruded color, one block is a plain solid. The Solid/Gradient
switch is unchanged. Co-extruded colors are saved as the existing
multicolor type (filament_colour_type 1, AMS ctype 1), which the
swatches already draw as segments.

Made with help from Claude

* Start a new solid from the selected gradient color

Made with help from Claude

* Carry colors over when switching between Solid and Gradient

Made with help from Claude

* Convert colors only on the first Solid/Gradient switch

Switching between Solid and Gradient used to copy colors across on every
switch, so edits made in one mode overwrote the other. Now the first
switch to a mode converts the other mode's colors, and after that each
mode keeps its own.

Gradient support now also allows co-extruded colors, so the separate
allow_coextruded option is removed.

Made with help from Claude

* Skip invalid favorites when loading instead of dropping all of them

Made with help from Claude

* Fix ColorPickerOptions initializer after removing allow_coextruded

Made with help from Claude

* Restore the original picker options at the project color call sites

With allow_coextruded gone, {true, true} already allows gradients and
co-extruded colors, so these two call sites no longer need to change.

Made with help from Claude

* Update the color picker design doc for the Solid/Gradient behavior

Made with help from Claude

* Merge gradient and co-extruded picker types into ColorMulti

Replace ColorGradient and ColorCoextruded with one ColorMulti
{colors, gradient} in ColorSelection = variant<ColorRGBA, ColorMulti>,
as suggested in review. This also collapses the duplicated gradient and
co-extruded branches in normalize, JSON load/save and the AMS conversion.

Made with help from Claude

---------

Co-authored-by: yw4z <ywsyildiz@gmail.com>
2026-11-28 17:52:03 +08:00
yw4z 85f85eb983 fix dialog clipping on linux 2026-11-28 05:40:29 +03:00
yw4z 24c08503fe cleanup 2026-11-28 05:14:51 +03:00
yw4z 25756cfc71 update 2026-11-28 05:08:13 +03:00
HanifKoh 1044ef4407 Setup MQTT for OrcaSonar (#17951)
Add OrcaMqttConnection, the MQTT 3.1.1 client the OrcaSonar printer
connections use, over a Boost.Beast WebSocket (ws:// and wss://). The
MQTT protocol is async_mqtt's I/O-independent connection; async_mqtt is
added as a header-only dependency. Tests run the class against an
in-process mock broker.
2026-11-28 09:57:03 +08:00
yw4z 0953b6eff7 Merge branch 'main' into ui-fixes-102 2026-11-28 02:47:52 +03:00
Hammam Shakarchi d887c707b7 Speed up finding the connected bodies of assemblies with large islands (#17967)
connected_bodies() now intersects two islands on adjacent layers only inside the overlap of their boxes, and checks the pairs of layers in parallel. A large island, such as a sheet with thousands of holes, was intersected whole with every small island inside its box, so slicing such assemblies has taken 30 minutes or more since #16291. The bodies found are unchanged.

Fixes #17966
2026-11-27 17:26:30 -06:00
Kris Austin 28a6a8463c Keep a process's compatible printers when a project stores no list (#17833)
A project saves the edited process's compatible printers as print_compatible_printers only when the list isn't empty. When the key was missing, loading the project applied an empty list over the local process preset, so its compatible printers reset to All.

Now the load leaves compatible_printers alone when the project stores no list, and the local process keeps its own list. A project that stores a list still applies it. If the kept list leaves out the project's printer, the load clears it as before, so the process stays compatible.
2026-11-27 17:22:39 -06:00
HanifKoh fe6da0040c Start the Last Fill Role Empty So a Top-Only Lift Never Lifts the First Travel (#17949)
With Lift Z enforcement set to Top Only, a retraction lifts when the last fill was top solid infill or ironing. `m_last_notgapfill_extrusion_role` had no initial value, and the first travel of a print comes before any fill, so it read whatever was left in memory, often the previous slice's last role. Slicing the same project twice could lift the first travel one time and not the next. It now starts as `erNone`.

The new fff_print test fills new memory with the top solid infill role on glibc, so it fails without the fix on every Linux run.
2026-11-27 17:15:01 -06:00
Kuzuri de3e742d3f Fix text floating off copies of an object in Bambu Studio projects (#17942)
When several components of a 3MF use the same off-center mesh, the reader centers the mesh on its first use and adds the centering shift to every later volume without applying the component's rotation and scale to it. Rotated or scaled copies end up c - R·c away from where the file puts them. In Bambu Studio projects this moves text embossed on copies of an object, because Bambu Studio doesn't center text meshes. The shift now goes through the component's rotation and scale, the same as on the mesh's first use.

Adds a regression test with a small 3MF that uses one box mesh in four components (rotated, rotated and moved, scaled, only moved).
2026-11-27 17:14:16 -06:00
yw4z bf0c9bc907 Fix: Ctrl + mouse wheel not changing brush size in Texture Displacement, and ⌘ + wheel on macOS (#17926)
Texture Displacement was missing from the gizmos that `GLGizmosManager::on_mouse_wheel` sends wheel events to, so Ctrl + wheel zoomed the camera instead of changing the brush size, smart fill angle or gap area. In seam marking and "Adjust Texture" modes, where no brush is drawn, the wheel still zooms.

On macOS the wheel handler only read the Control key, while the shortcut tooltips name ⌘. Both keys now work.

The handler also skips horizontal wheel events and events with a rotation of 0. A macOS trackpad sends both kinds, and each one used to count as a brush step.
2026-11-27 17:10:20 -06:00
Noisyfox 70b361c6e7 Fix prime tower slicing failure in print by object mode with multi-instances (#17918)
Two copies of one multicolor object printed by object failed with "Wipe tower generation failed, possibly due to empty first layer." The slicer counted the copies as one object and kept the prime tower, while Prepare already hid it. Print::apply now passes the number of printable instances to normalize_fdm_2.

The IDEX/IQEX placement check now uses the plate's own print sequence and its printable instance count, so it no longer blocks a slice over a tower that isn't printed. Adding an object to the list registers all of its instances with the plate, not only the first.
2026-11-27 15:30:59 -06:00
π² 4101bef87b [BugFix]: Eliminating C2026 error in MSVC (#17945) 2026-11-27 17:57:38 -03:00
HanifKoh 2cfda4e4ec Send the Shown Error Code From the Printer Error Dialog's Buttons (#17937)
The m_error_code member was never assigned, so the dialog's action buttons
sent an indeterminate code to the printer and the repeat check in
show_error_code compared against it. It is now initialised to 0 and set when
the dialog shows a code, as BambuStudio does.
2026-11-28 02:30:08 +08:00
SoftFever f4e6ed6ac9 Run the MCP sweep on GNOME Shell and fix its Linux failures (#17956)
* Run the MCP sweep on GNOME Shell and fix its Linux failures

On a GNOME machine without KWin, orca_mcp.py launch --headless and the sweep now start a private GNOME Shell, so the tests run on the GPU instead of falling back to Xvfb. Picking an item far down a long ImGui list, such as a font near the end of the Text tool's list, no longer fails as out of view, and an item only half shown is scrolled into view before it is clicked. window_set restores a minimized window under GNOME Shell on X11, and the sweep's checks no longer depend on a desktop's top bar or on the fonts installed.

* Fix the window_set note unit test failing on every platform
2026-11-28 00:55:05 +08:00
SoftFever 4fc4d11972 Fix the Deps Build Failing After a Dependency's Patch Changes (#17957)
Unpack a dependency's source again when its patches change

When a pull replaced, edited or removed one of a dependency's patches, the next deps build
failed at the patch step (OCCT after the seam patch was replaced) or kept the old change in
the source. The deps build now unpacks that dependency fresh before patching it, while builds
whose patches are unchanged unpack nothing. The first deps build after this change unpacks
each patched dependency once.
2026-11-28 00:54:50 +08:00
HanifKoh 6a055745ad Start the Person's Job Only After the Call's Change in the MCP Worker-Claim Test (#17952)
The test slept 60 ms before starting the worker job and expected the call to have found the worker idle by then. On a loaded runner the call's thread could start later, so the job was already running, the call was refused as busy and its reply had no status. The test now waits until the call's change has run, and the call settles until the job starts, so the order holds on any machine.
2026-11-27 22:45:08 +08:00
Ian Chua bd9f5261ab feat: allow filament slots independent of toolhead count (#17847)
* feat: make filament slots independent from extruders

* test: fix filament slot fixtures

* fix: warn when filament slots exceed tool count

* test: fix filament slot warning fixture

* fix: update preset sweep for independent filament slots

* fix: Warn about filament slots that may address the wrong tool

* fix: align MCP filament slot operations with the sidebar

* test: fix filament slot schema and preset sweep

* fix: limit object filament settings by slot count
2026-11-27 19:38:12 +08:00
HanifKoh a0663e6eb5 Hold the GIL in the Python Tests That Segfault on Main (#17941)
#17871 made the slic3rutils tests start the production PythonInterpreter, which releases the GIL once Python is up, and gave the existing Python tests ensure_python_initialized() and py::gil_scoped_acquire. Four tests that #17819 added touch Python without the GIL and segfault on every platform. Give them the same two lines; the MCP tests hold the GIL only around the import, since python_api_reference() takes it itself.
2026-11-27 17:12:17 +08:00
Bartłomiej Kałuża 7cdc829ab3 Fix the Elegoo Centauri Carbon 2 plate type: enable plate selection, default to Textured PEI (side A) (#17916)
The CC2 profile hid the plate selector and fell back to Smooth High Temp Plate, which the printer doesn't have, so bed temperatures came from hot_plate_temp. Enable plate selection on the 0.4 nozzle profile (the 0.2, 0.6 and 0.8 inherit it) and default to Textured PEI Plate, side A of the stock plate. Users with a saved plate keep it until they switch.

Elegoo bundle version 02.04.00.14 -> 02.04.00.15.
2026-11-26 21:15:58 -06:00
HanifKoh 7fbacdfe7a Stop Reading an Uninitialised Position When Routing Back to the Type 1 Wipe Tower (#17930)
After a filament change on a Type 1 wipe tower with "Skip points" on, the travel back to the tower started from `gcode_last_pos`, which was never initialised. An axis the change G-code doesn't move kept whatever was on the stack, so the route could cut across the tower or go the long way round, and the same slice could give different G-code between runs.

That axis now starts at the head's last tracked position from before the change G-code. This changes slices on the Bambu Lab A2L, H2C, P2S and X2D and the Qidi Q2 and Q2C, and adds a regression test to `test_wipe_tower.cpp`.
2026-11-26 21:13:56 -06:00
Kris Austin fe6c70d736 Keep every object when the CLI moves a project's plates to a new bed (#17897)
When the CLI slices a project for a printer with a different bed, it
matches each object to a plate by position and then moves each plate's
objects onto the new plate grid. The plates got the new bed's shape
before that matching, while they were still laid out on the old grid.

On a 256 mm project's grid, a 340 mm plate 1 overlaps plate 2 by
32.8 mm. An object near plate 2's left edge joined plate 1, moved with
it into the gap between plates, and was left out of the slice with
exit code 0. On a smaller bed, an object near a plate's right edge
matched no plate and was left out the same way.

Match objects on the bed the project was saved with, then apply the
new bed's shape and match them again on the new grid.

Fixes #17741
2026-11-26 21:02:46 -06:00
Kris Austin f829169077 Let slic3rutils tests pass when they all run in one process (#17871) 2026-11-26 21:01:05 -06:00