Commit Graph
32935 Commits
Author SHA1 Message Date
SoftFever af2ffb8cdd Keep the time-format tests passing when daylight saving ends (#17116)
(cherry picked from commit d1d8204dc1)
v2.5.0-rc
2026-11-01 17:55:38 +08:00
SoftFever ac5aa9c6c2 Show 3D-Fuel Pro PCTG ESD with its brand in the filament list (#17115)
(cherry picked from commit bb4c092ae4)
2026-11-01 16:02:37 +08:00
SoftFever a4c282c4a1 Bump version to 2.5.0-rc 2026-11-01 10:36:21 +08:00
SoftFever 645610f015 Let Slice and Print retry after a post-processing script or plugin fails (#17095)
(cherry picked from commit 1093ff0714)
2026-11-01 09:53:53 +08:00
TheLegendTubaGuy 8386727e1d Keep Short Objects on the Plate When Arranging By Object (#17011)
* Keep Short Objects on the Plate When Arranging By Object

Arranging objects shorter than the nozzle height for printing by object
placed them off the plate, and the plate then reported them too close to
each other (#16991).

- The arrange bed grew by half the extruder clearance radius, while short
  objects are only inflated by half the gap between them, so the extra bed
  was free to use. The bed now grows by the objects' actual inflation,
  after the bed margin is given back to the largest object.
- Arrange kept short objects 2 mm apart, but the sequential clearance
  check needs a nozzle diameter between them.
- Giving back the bed margin measures objects without that inflation,
  which only keeps objects apart, plus EPSILON so rounding still lets an
  object that fills the bed be placed.
- Exclusion regions are moved only when the bed grows, so short objects
  keep their gap to calibration regions on every side.

* Avoid objects at the bed edge and fit turned objects when arranging by object

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
(cherry picked from commit 041df4031e)
2026-11-01 09:53:53 +08:00
Felix14_v2 87c5122405 Review Russian localization AI updates (#16849)
* Update OrcaSlicer_ru.po

* Restore `G-code` translation removal

* Restore `G-code` translation removal 2

* Update OrcaSlicer_ru.po

* IMEX, color mixing, etc.

* More IMEX improvements

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Restore `G-code` translation removal

* Restore `G-code` translation removal 2

* Update OrcaSlicer_ru.po

* IMEX, color mixing, etc.

* More IMEX improvements

* Fix validation

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Remove old detailed pattern descriptions

(hopefully localized descriptions will be moved to wiki)

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Restore `G-code` translation removal

* Restore `G-code` translation removal 2

* Update OrcaSlicer_ru.po

* IMEX, color mixing, etc.

* More IMEX improvements

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Restore `G-code` translation removal 2

* Update OrcaSlicer_ru.po

* IMEX, color mixing, etc.

* More IMEX improvements

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Remove old detailed pattern descriptions

(hopefully localized descriptions will be moved to wiki)

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

(cherry picked from commit 4045a87b70)
2026-11-01 09:53:53 +08:00
Alexandre Folle de Menezes b8b685eddc Verify and improve AI pt_BR translations (#16871)
* Verify and improve AI pt_BR translations

* Fix typos and agreement left by the pt_BR term changes

Cabeçote is masculine and ponte feminine, so the switch from cabeça da ferramenta and pórtico left mismatched articles and pronouns. Also restore capitals on sentence-initial "Clique" and fix "rteservada".

---------

Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
(cherry picked from commit 4ab172fd33)
2026-11-01 09:53:53 +08:00
Thalis Antunes 5c1fcb24c4 Remove settings OrcaSlicer ignores from the Sovol process profiles (#17085)
wall_loop_direction and initial_solid_infill_acceleration in the three
SV08 MAX processes, and minimum_sparse_infill_threshold in eight SV06 ACE
and SV06 Plus ACE processes, are not options OrcaSlicer defines. The
loader drops them, so removing them does not change the sliced output.
The SV06 ACE files already set minimum_sparse_infill_area.

Bump the Sovol bundle version to 02.04.00.09.

(cherry picked from commit 4274ea6bb3)
2026-11-01 09:53:53 +08:00
Alec Johnson 110f2d16ff 3D-Fuel Filament Profiles (#17032)
* Added 3D-Fuel filament profiles to
OrcaFilamentLibrary

* added esd filament to files

---------

Co-authored-by: Alec Johnson <ajohnson@3dfuel.com>
(cherry picked from commit 3ca96a0891)
2026-11-01 09:53:53 +08:00
Sezgin AÇIKGÖZ 7ba22d92dd Update OpenEYE Peacock V2 printer and process profiles (#17028)
Signed-off-by: Sezgin AÇIKGÖZ <sezginacikgoz@mail.com>
(cherry picked from commit efd65b7334)
2026-11-01 09:53:53 +08:00
Aditya-Sharma-12n 50d36709a4 Add BenFab 450 printer profiles (#16976)
Adds system profiles for the BenFab 450, a Klipper (Moonraker) FFF printer with a 426 x 426 x 480 mm build volume: 0.4/0.6/0.8/1.0 mm nozzle variants, Fine/Optimal/Standard/Draft processes per nozzle, OrcaFilamentLibrary generic filaments, cover image, bed model and texture.

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit ffdb5da100)
2026-11-01 09:53:53 +08:00
Hugo Costa a3497164b9 Inline Machine start gcode for RF50 0.6 nozzle (#16932)
* Inline Machine start gcode for RF50 0.6 nozzle

The previous fix seperated the `machine_start_gcode` into
multiline strings sperated by commas which were then translated
to real commas on the RF50 0.6 nozzle profile. Now it's inline
and the gcode commands are only seperated by a newline. This way
there are no errors when printing with this profile and the correct
pressure advance is set when the print start.

* Bump up Blocks profile version

(cherry picked from commit eac3ba4416)
2026-11-01 09:53:53 +08:00
SoftFever 7df6907a78 Fix a crash when closing OrcaSlicer with a Bambu LAN printer connected (#17087)
(cherry picked from commit 5cc5fb7f9c)
2026-11-01 09:53:53 +08:00
SoftFever 3263e6a84b Remember the last printer and keep AMS-synced filaments across restarts (#17086)
(cherry picked from commit 913c622574)
2026-11-01 09:53:53 +08:00
SoftFever bc662830cf Link the bundled libjpeg instead of the system one on Arch Linux (#17082)
(cherry picked from commit 7af3995544)
2026-11-01 09:53:53 +08:00
SoftFever b51a538032 Read nozzle diameters correctly when the UI language uses a decimal comma (#17079)
(cherry picked from commit 27cafaa06c)
2026-11-01 09:53:53 +08:00
SoftFever a2acec57c4 Match the printer's loaded filaments when grouping filaments on dual-nozzle printers (#17074)
* Group a filament onto the nozzle that has it loaded in Filament-Saving mode

* Match closer colours and the same filament sub-type in Convenience mode

(cherry picked from commit 7b6c12cf74)
2026-11-01 09:53:53 +08:00
Kris Austin 4b3e4194ff Fix lightning infill hang when an overhang sample lands past the infill (#17066)
The lightning distance field samples each layer's overhang on a grid
anchored at the bounding box of the infill outlines. The opening it
applies to the overhang first can push a sample a little past that box.
Such a sample falls into its neighbor's grid cell or one update() never
visits, so it is never erased, and generateNewTrees() adds the same
point to the tree forever until memory runs out.

Grow the box to cover every sample. It only changes when a sample lies
outside it, and models that slice today give the same result.

Fixes #17051

(cherry picked from commit 7ac46c9a61)
2026-11-01 09:53:53 +08:00
SwineFlew931 df5f9d078d Keep Each Extruder's Values on User Printers With More Extruders Than Their Parent (#16536)
A user printer preset with more extruders than its system parent lost the extra extruders' values on load. The parent copy is now grown to the child's extruder count before the child's values are merged, in all three load paths.

Fixes #16535

(cherry picked from commit 9b4f84a923)
2026-11-01 09:53:53 +08:00
Arthur Porto ee6c30d5c1 Give each object the layer height limits of its own extruder, and compare layers rather than limits for the prime tower (#17000)
* Test the layer height limits taken for an object, and that they don't keep objects from sharing a prime tower

* Take the layer height limits from an object's own extruder, and don't let them refuse a prime tower

* Test the prime tower check through Print::validate(), and shorten the equal_layering comment

The test runs Print::validate() on two cubes, on filaments 1 and 3 of a printer whose first extruder allows thicker layers than the others. Without this PR, and with only the index fix, it fails with the refusal from #16938. It uses filament 3 because filament 2 read extruder 1's limits before the index fix.

---------

Co-authored-by: raistlin7447 <kris.austin@gmail.com>
(cherry picked from commit fcd96ad91c)
2026-11-01 09:53:53 +08:00
Ian Bassi f4bfb4660f Fix infill and surface filaments overriding each other in Filament for features (#17058)
(cherry picked from commit 304924a69a)
2026-11-01 09:53:53 +08:00
Kiss Lorand 414857c9d4 Fix build-plate-only tree supports inside XY clearance (#17060)
(cherry picked from commit a4a5100879)
2026-11-01 09:53:53 +08:00
Gazi Faysal Jubayer 61ad14148f Use the printing filament's retraction lift settings (#16965)
On a single-extruder printer with several filaments, every filament used filament 1's "Only lift Z above", "Only lift Z below", "On surfaces" and "Travel distance threshold" values, so a filament's own overrides of these settings were ignored. All four are now read for the filament that is printing.

Fixes #16185

(cherry picked from commit 98b539c3e6)
2026-11-01 09:53:53 +08:00
Ian Chua d23610b1c6 fix: flatpak bundle uv (#17045)
* fix: flatpak builds weren't bundling UV

* fix: prominently fail if no UV

(cherry picked from commit 52c50e626e)
2026-11-01 09:53:53 +08:00
Kris Austin 4e8c7bca6c Fix crash opening a project with missing or empty settings (#17040)
fix: crash opening a project with missing or empty settings

load_files reads filament_colour from the project config before the
defaults are merged in, and uses it without a null check. A 3MF whose
project_settings.config has no filament_colour crashes on open. The
2.3.1-alpha migration reads sparse_infill_rotate_template and
sparse_infill_pattern the same way.

Check those reads for null. A missing filament_colour keeps the count
at 1, and a missing infill pattern falls back to the default the merge
would apply. The two identical 2.3.1-alpha migrations become one lambda.

The 2.3.1-alpha and newer-version branches also skipped the empty-config
check, so an empty project config reached the same reads. Send every
project config the load skips through one fallback that loads the
geometry only and logs it. It keeps each branch's notice, and a
config-only import now says the 3MF has no project settings OrcaSlicer
can import instead of claiming to load geometry. A same-version file no
longer calls itself old.

Geometry-only imports decided by these checks never added filaments for
objects assigned past the first, because that step ran before them. Run
it after the checks. Count project filaments per file, and drop the two
branches at the end of the chain that no file type reaches.

Fixes #17008

(cherry picked from commit eda4062d68)
2026-11-01 09:53:53 +08:00
Ian Bassi a1bd5510ab Fix tooltip line breaks and ambiguous msgids in all languages (#17055)
(cherry picked from commit 3bc827066d)
2026-11-01 09:53:53 +08:00
Kiss Lorand 27117a1507 Fix transform gizmos not updating after pressing Tab (#16921)
Fix transform gizmo refresh after tabbing

(cherry picked from commit b1953ab423)
2026-11-01 09:53:53 +08:00
mgoiogana 26fc2968a8 Enable Basque language in preferences (#17052)
* Enable Basque language in preferences

Add Basque to the supported languages list and display it as Euskara in the language menu.

* only formating

---------

Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
(cherry picked from commit f894d08881)
2026-11-01 09:53:53 +08:00
SoftFever 2dc6f7b18f fix: Preserve inherited filament presets during AMS sync (#16986)
# Description

<!--
> Please provide a summary of the changes made in this PR. Include
details such as:
  > * What issue does this PR address or fix?
  > * What new features or enhancements does this PR introduce?
> * Are there any breaking changes or dependencies that need to be
considered?
-->

When an AMS reports a system filament preset, syncing will replace a
custom preset based on it, losing the user’s overrides. Keep the
existing preset when it inherits from the reported preset, while still
syncing the tray’s filament data.

# Screenshots/Recordings/Graphs

<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->

## Tests

<!--
> Please describe the tests that you have conducted to verify the
changes made in this PR.
-->

<!--
> 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)

(cherry picked from commit db35f3d098)
2026-11-01 09:53:53 +08:00
HanifKoh 1020f9ad43 Keep the Canvas Printable State When the Scene Reloads a Volume (#17003)
Deleting the last modifier of an unprintable object painted it in its
normal colour again: ModelObject::delete_volume gives the remaining
volume a new id, reload_scene then builds a fresh GLVolume for it, and
nothing copied the instance's printable flag into the new volume. The
object list and the slice were right; only the 3D view went stale.

reload_scene now copies ModelInstance::printable into every GLVolume it
creates or reuses, so the canvas follows the model on every reload
instead of relying on each call site to refresh it afterwards.

Checked on Linux with a cube plus a block modifier saved as unprintable:
deleting the modifier turned the cube from grey to its normal colour
before, and leaves it grey now; toggling Printable from the object's
context menu still switches it both ways.

(cherry picked from commit 9e5110d593)
2026-11-01 09:53:53 +08:00
HanifKoh 347240ba35 Drop a Scheduled Print Host Upload When the Slice Ends Before It Is Queued (#17016)
A print host job scheduled by Print is moved into the print host job queue at
the end of prepare_upload(). When the run ended before that point, because a
post-processing script or a slicing-pipeline plugin failed in upload mode, or
because the slice was cancelled, the job stayed in m_upload_job. Every later
plain slice, even in a new project, then ran prepare_upload() again with the
first job's output name and uploaded (and printed) the file although only Slice
was pressed, until an upload succeeded or OrcaSlicer was restarted.

reset_export() runs after every completed, failed or cancelled slice and on a
new project, and already clears the export path for the same reason. Clear the
scheduled upload there as well.

(cherry picked from commit efe735853a)
2026-11-01 09:53:53 +08:00
Roman Romantsov 39408fa1f2 fix: fix no sparse layers during a toolchange (#15441)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
(cherry picked from commit 29e1899571)
2026-11-01 09:53:53 +08:00
Clifford 98b67a0227 Widen the post-slice extruder masks to 64 bits (#17002)
The post-slice check stored the extruders that can't print each filament as bits in an int. From the 32nd extruder on, the shift overflowed, and on x86 extruder 33's bit landed on extruder 1. limit_filament_maps and the printable area mask are now 64-bit, which covers MAXIMUM_EXTRUDER_NUMBER. Printers with up to 31 extruders get the same values as before.

The tests check the area, height and filament type limits on nozzles 2, 32, 33 and 64, and slice a cube on nozzle 64 of a 64-nozzle printer.

(cherry picked from commit 5ea64864ef)
2026-11-01 09:53:53 +08:00
HanifKoh 6421e35cdd Restore Read Access to the Extracted AppImage Before Repacking It (#17036)
The Linux build unpacks the AppImage to add the preset caches and packs
it again with appimagetool. The runtime extracts every directory as
0700, and appimagetool's continuous build 333 (2026-10-29) refuses to
pack a tree that other users could not read, so every Linux build has
failed at that step since. Give the whole extracted tree, caches
included, world read and execute access right before repacking.

(cherry picked from commit 3911c9a56e)
2026-11-01 09:53:53 +08:00
HMITCHR 8cf2482fcd Do not prebuild pages while a modal dialog is open (#16994)
On macOS the app could hang at 100% CPU when a project with customized
presets was opened into a running app and the message box was closed
while the idle prebuild was building the Project page's web view. The
web view waits for WebKit in a wxYield() loop, and closing the dialog
aborts the modal session, so the reply never arrives.

The idle scheduler now runs a slice only in the main event loop, so no
pages are built while a modal dialog is open. Building resumes when the
dialog closes.

(cherry picked from commit 3610d8bb35)
2026-11-01 09:53:53 +08:00
HanifKoh 39e3a42198 Tell a Printer Without a Filament System Apart From an Unreachable One When Syncing (#17021)
Synchronize filament list showed "OrcaSlicer can't connect to <printer>"
whenever the filament list came back empty. For pull-mode agents that is
also the normal outcome on a reachable printer that has no AMS, CFS or
other multi-material unit, so every such Moonraker printer was reported as
powered off or off the network.

When the printer is online and has already reported its status, explain
that it lists no filament system instead.

(cherry picked from commit 6112429980)
2026-11-01 09:53:53 +08:00
Maarten 4b58b52bef Add K1 Max to Creality CFS-capable models and K1 family, use the CrealityPrint host for all K1 profiles (#15858)
* Add K1 Max printer model to Creality multicolor capable prints

Not sure why, but for some reason the K1 Max is not under CFS-capable models while all others are.

This corrects that mistake

It also enables using the lidar (enableSelfTest) which the k1 max came with from the factory

* fix(CrealityPrint): treat K1 Max as a K1-family model

K1 Max firmware stores gcodes under /usr/data and uses the stricter
WebSocket protocol, so it needs the same handling as the other K1
models. Add it to is_k1_family().

* profiles: switch K1 Max to the CrealityPrint host

Mirror the rest of the K1 family (#14089): set host_type and
printer_agent to crealityprint so the K1 Max uses the CrealityPrint
LAN host instead of the generic Octo/Klipper host, and bump the
Creality profile version.

* fix(CrealityPrint): cover the K1 *_CFS-C model names

The CFS bundle variants report their own literal /info model names, so
list K1 Max_CFS-C, K1 SE_CFS-C and K1C_CFS-C in both the K1-family set
and the CFS-capable table, next to the existing K1_CFS-C entry.

Also refresh the discovery comments, which still described the K2
platform only.

* profiles: switch the remaining K1 CFS-C variants to the CrealityPrint host

K1 Max_CFS-C, K1 SE_CFS-C and K1C_CFS-C were the last K1 machine
profiles still on the generic Octo/Klipper host after #14089. Set
host_type/printer_agent to crealityprint like their non-CFS siblings.

* Recognise the Creality K2 SE (F016) as a CFS-Capable Printer

The Creality Print host gates CFS filament sync, the colour mapping in the
send dialog and the multi-colour start command on a model table that had no
entry for the K2 SE. Its firmware reports the model code F016, so a K2 SE
Combo was treated as a plain printer: the CFS was never queried, the
Moonraker fallback found nothing and the sidebar reported a connection
failure.

Add F016 to the table under the name Creality Print uses for it.

* Use the CrealityPrint Host for the K2 SE Profile

The K2, K2 Plus and K2 Pro presets talk to the printer through the
CrealityPrint host, which is where CFS sync, the colour mapping and the
multi-colour start command live. The K2 SE preset was still on the generic
Octo/Klipper host with no printer agent, so a stock K2 SE never reached that
code even once its model code is recognised.

Switch it to the same host and agent as the rest of the K2 family. The
bundle version was already raised in this change.

---------

Co-authored-by: Maarten <9350591+mjkl-gh@users.noreply.github.com>
Co-authored-by: Hanif Koh <hanifkoh@outlook.com>
(cherry picked from commit 88806ac63e)
2026-11-01 09:53:53 +08:00
Gazi Faysal Jubayer 45d0c77caa Give enum list options in the print config defaults their keys map (#16966)
Enum list options in the static print config defaults had no keys map. A config copied from them, such as `DynamicPrintConfig::full_print_config()`, wrote these options as an empty string and crashed when a name was read into one. `StaticCache::finalize()` now sets `coEnums` defaults from `create_default_option()`, which adds the keys map. Option values are unchanged.

Fixes #16964

(cherry picked from commit d28c71c485)
2026-11-01 09:53:53 +08:00
Kris Austin a45cd836d9 fix: slicing crash on an object too thin for any layer with a raft (#17013)
With a raft, an object too thin for any layer gets an empty layer
list. Two functions read it as if it had an entry.

- groupingVolumesForBrim() reads the first layer, and slice() calls it
  before its own check for an empty list.
- With Precise Z height on, adjust_layer_series_to_align_object_height()
  read the last entry. This also runs in Print::validate(), so it
  crashed before slicing started.

Both functions now return early on an empty list, so slicing reaches
the existing "No layers were detected" error.

Fixes #17009

(cherry picked from commit 59f0cc3806)
2026-11-01 09:53:53 +08:00
Kris Austin 61eb4622ea fix: Print plate and Send to Moonraker printers upload a 3MF zip as G-code (#16968)
With "Use printer agents" on, Print plate and Send on Moonraker-based printer agents uploaded the plate's .gcode.3mf bundle under a .gcode name, so Klipper read a zip as G-code and cancelled the print.

Both paths now upload the plate's G-code from the bundle, named after the job. Printers whose profile sets use_3mf keep getting the bundle, named <job>.gcode.3mf, and the Qidi agent's print start names the plate with plateindex. The print start quotes the file name, so job names keep spaces, apostrophes and non-ASCII letters.

Picks up #16453 by DIEHARDave, who wrote the plate G-code extraction for Print plate.

Fixes #16954

Co-authored-by: DIEHARDave <diehard.dave@gmail.com>
(cherry picked from commit 187baae4ee)
2026-11-01 09:53:53 +08:00
Kris Austin 5ca36251a2 Fix crash when transferring a post-processing script to another preset (#16963)
Transferring an unsaved post-processing script onto a preset with no scripts crashed Orca. apply_only called set_at() on the empty target list, and set_at() reads the list's first value. apply_only now gives an empty target list a first value, and an empty source list replaces the target list.

deep_diff now reports serialized lists (post-processing scripts and the flow compensation model) as one setting, through is_edited_as_whole_list(). Tab::options_list_storage_key uses the same check. The unsaved changes and Compare Presets dialogs show these lists the way the settings tab does.

(cherry picked from commit 98619b64a2)
2026-11-01 09:53:53 +08:00
HanifKoh fb9682c828 Bump wxWidgets to the Fork Commit With the Wayland Seat Release Fix (#17015)
* Update WxWidget Git Tag

* Bump the Flatpak wxWidgets Pin to the Same Commit as the Deps Build

(cherry picked from commit 40d7f25ff9)
2026-11-01 09:53:53 +08:00
SoftFever b0d42fa07b Fix crash on New Project after opening the Design tab (#16997)
# Description

Starting a new project or opening one could crash OrcaSlicer if the
Design tab had been opened earlier in the session and OrcaSlicer wasn't
the active window at that moment. It no longer crashes, and the Design
tab is still cleared for the new project as before.

Only reachable with the CAD feature turned on. No change to slicing or
to project files.

# Screenshots/Recordings/Graphs

<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->

## Tests

Reproduced on a Windows Release build of a feature branch that has the
same code, by driving New Project with OrcaSlicer visible but not the
active window and a debugger attached. Before the change it crashed with
the same stack as the original crash log. After it, the same steps
finish without a crash. This branch (main plus the change) wasn't built
on its own. There's no automated test, because the crash needs a real
change of window focus.

<!--
> 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)

(cherry picked from commit 0db324476f)
2026-11-01 09:53:53 +08:00
Lam Wei Lun 858a32c6dd Fix Full Publish variant layout and project round trip (#17014)
* fix: keep a Full Publish copy's variant vectors and list in step

A published Full entry clones the receiver's filament preset and overlays
the author's values, but the copy's variant list was rewritten to the
author's columns even when a variant-bearing key could not be filled from
the file. That key kept the receiver's width while every reader sizes the
layout from the list, so one variant silently read another variant's
value.

Copy a variant key only when the file carries all of the author's
columns, then drop any remaining variant key whose length disagrees with
the author's column count, and set the list last. filament_extruder_variant
is itself a member of filament_options_with_variant and is skipped by that
cleanup. The layout joins the entry's dedup key, so two entries naming one
preset but carrying different variants cannot share a copy.

A Full copy is detached and parentless, which also meant it never reached
the receiver's saved project: get_preset_differed_for_save stored no diff
without a parent, and load_project_embedded_presets dropped a preset whose
inherits did not resolve. Embed a parentless preset with its whole config
and resolve it over the default preset on load, mirroring the custom-root
branch of the user-preset loader. A preset naming a missing parent is
still dropped.

Tests: a Full copy drops a variant key the file cannot fill; a parentless
project-embedded preset keeps its own variants on reload.

* fix: stop relabelling and truncating published filament variants

Review of the previous commit found three paths that still let a Full
Publish copy or a loaded preset describe variants its vectors do not
hold.

set_num_filaments resizes every key in m_filament_option_keys to the
filament count, and two of those keys (filament_retract_length_nc and
volumetric_speed_coefficients) are variant-bearing. Loading a
multi-variant preset, including a saved Full copy, truncated them to the
first variant, which readers then hid by clamping. Skip variant-bearing
keys there, as Preset::normalize's own pass already does.

A variant key the file did not carry was kept whenever its width matched
the author's column count, then relabelled with the author's variant
names. When the receiver lists the variants in another order, that puts
one variant's value under another's name. Keep the key only when the
receiver's list is the same layout, or it holds a single value; otherwise
drop it and report it in skipped_keys.

An imported material key that names a file column but is per-slot in this
build was read positionally, returning another slot's column. Skip and
report it instead.

Also narrow the parentless project-embedded preset path to a filament
preset that carries a variant layout, and keep a failed apply from
aborting the whole project load.

* test: store filament_retract_length_nc as the nullable option it is

The filament count test set the key through the non-nullable accessor.
The option's default is ConfigOptionFloatsNullable although the
definition says coFloats, so the value was written through the wrong
dynamic type and the later lookup returned null. Use the nullable
accessor and assert the lookups succeed instead of dereferencing blindly.

(cherry picked from commit 45a29d391b)
2026-11-01 09:53:53 +08:00
Lam Wei Lun 181e64fd78 Fix Publish 3MF export and import of filament variants (#16984)
* Fix Publish 3MF export and import of filament variants

Variant-bearing filament keys (filament_options_with_variant) hold one
value per (slot, variant) in the uncompacted config, but the published
path addressed them by slot: export kept the wrong column once an
earlier filament had more than one variant, import wrote every material
key to receiver variant 0, and Full Publish copied a single variant.

Add a column model in PublishSettings: file columns from
filament_self_index, exact variant matching, and the column a slot
actually prints with (filament_map / filament_volume_map / nozzle
types, hybrid mapped through the slot's own volume type). Export
rewrites partial material entries to base#col, masks those keys by
column instead of slot, and drops a key whose column is foreign, out of
range, or whose vector does not match the file layout. Import maps
base#col back to the receiver preset's variant with the same name and
skips (reports) a miss instead of writing variant 0; plain keys from
older publishes keep the positional import. Full Publish copies every
variant of the author's slot and sets the copy's
filament_extruder_variant.

No new file keys: variant-bearing material keys gain a #col suffix.
No UI change in this commit.

* Fix missing includes

* Fix unit tests

* Fix unit tests

(cherry picked from commit c0efd44e56)
2026-11-01 09:53:53 +08:00
HanifKoh a02f6ed9be Validate Only the Edited Variant's Adaptive PA Model and Accept Spaces in It (#16978)
* Validate Only the Edited Variant's Adaptive PA Model and Accept Spaces in It

Since pressure advance became a per-variant filament setting, the Filament
tab validated every variant column of the adaptive pressure advance model
whenever one was edited. The columns the user never touched still hold the
default placeholder, which the validator rejects, so every edit of a
multi-variant filament ended in a "Line 1: flow value must be greater than PA
value" dialog about a column the user could not see. The check now covers the
variant being edited only, as the nozzle temperature checks on the same tab do.

The validator also rejected whitespace between the values, which the model
parser accepts, so a model typed as "0.027, 8.1416, 2000.0" sliced correctly
but warned on every slice. Whitespace is now ignored before the values are
checked.

Enabling adaptive pressure advance before entering a model warned that the
model "may contain invalid values", which only meant that the placeholder is
all zeros. That case now gets its own warning saying that no measurements
have been entered.

* Keep the Empty Adaptive PA Model a Single Filament Column in Its Test

Deserializing an empty string into the model option leaves it with no
entries, and get_at on an empty vector aborts on a libstdc++ built with
assertions, as the Flatpak unit-test lanes are. Presets always hold one
column per filament, so set the value directly.

(cherry picked from commit 2cb2f0d2e7)
2026-11-01 09:53:53 +08:00
TheLegendTubaGuy e8924f30d7 Fix printer agent firmware check and send dialog name list (#16970)
MachineObject::upgrade_display_state lost its initializer when it became an enum, and only Bambu status messages assign it. Printer agent printers (Moonraker, Qidi) kept whatever value was in memory, so the Print and Send dialogs could block an idle printer as "updating firmware". It now starts at UpgradingUnavaliable, the value it had before.

The Send to Printer dialog now labels printers with get_shown_printer_name(), so printer agent printers show "Name (IP)" and Bambu labels are unchanged. Printers that share a name each get their own entry, where before every entry pointed to the first printer with that name.

(cherry picked from commit d81a212f53)
2026-11-01 09:53:53 +08:00
TheLegendTubaGuy 7050df0513 Fix camera orbit speed multiplier ignoring decimals in non-English languages (#16967)
The orbit multiplier preference is stored with a decimal point, but was
parsed with std::stod, which follows the C locale set by the interface
language. With a comma-decimal language, 0.99 parsed as 0 (frozen camera)
and 1.99 as 1. Parse it with string_to_double_decimal_point instead.

Fixes #11534

(cherry picked from commit 2e562e8b9e)
2026-11-01 09:53:53 +08:00
Gazi Faysal Jubayer bbffe8f4df Use the assigned filament's settings in the PA Line calibration test (#16882)
The PA Line test took its speed limit, line width and extrusion from filament 0, whatever filament the test was assigned to. On any other AMS slot or filament, the test printed with the wrong speeds and the wrong extrusion (#16530).

The test now uses the filament the G-code generator has selected for it:
- the fast lines are capped by that filament's max volumetric speed;
- the line width uses the nozzle diameter of that filament's extruder;
- the lines and the number box use Extruder::e_per_mm() times print_flow_ratio, like a regular print.

With one filament whose flow ratio is not 1, the PA lines now use that flow ratio too. PA Pattern output is unchanged.

Adds a regression test that checks the PA line feedrate and extrusion for a test assigned to the second of two different filaments.

(cherry picked from commit 4b68224ff4)
2026-11-01 09:53:53 +08:00
sirjassam 9af2f10adf Add PrintaLot PLA profiles for Bambu Lab printers (#16951)
Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
(cherry picked from commit f0827063bd)
2026-11-01 09:53:53 +08:00