Commit Graph
20238 Commits
Author SHA1 Message Date
SoftFever 39705d7bb9 Make canvas screenshots taken right after a layer or view type change show the change 2026-11-01 17:39:07 +08:00
SoftFever 55bc33dad3 Merge branch 'main' into feature/mcp 2026-11-01 03:28:08 +08:00
SoftFever 1093ff0714 Let Slice and Print retry after a post-processing script or plugin fails (#17095) 2026-11-01 03:14:58 +08:00
HanifKoh c77020e654 Keep a Loaded Creality CFS Spool the Printer Cannot Name (#17034)
A K2 SE lists a loaded spool whose RFID tag the firmware does not know
with only its colour: vendor, type and name blank, state 2. The printer
shows the spool, but parse_cfs_response skipped every material with a
blank vendor and type regardless of state, so the sync dialog never
offered that slot. No firmware has been seen marking an empty slot that
way; empty slots carry state 0 and no colour.

Skip a non-zero state entry only when its colour is blank too. The slot
then shows in the sync dialog as an unread tray, like a Bambu tray with
an unknown spool: mapping it yields Generic PLA in the default colour.
The preset matcher returns no preset for an empty type instead of
scanning every preset for nothing.

The sync code for Moonraker printers assumes every tray either carries
a filament id or is a placeholder for an empty slot; an existing tray
with neither shifts the entries of the trays after it in an overwrite
sync. So a tray that resolved to no preset is published as a placeholder
as well: the overwrite sync keeps the project filament in that position,
as it does for an empty slot, and the tray stays visible in its colour.

Read the box and material fields through the null-safe JSON helpers the
K1 parser already uses, so a null or mistyped field reads as blank
instead of throwing out of the sync.

Tests: parse the reporter's boxsInfo payload and check that the unnamed
spool is listed, a truly blank entry is still skipped, a null field
reads as blank, and an empty type matches no preset; an overwrite sync
with such a placeholder between loaded slots keeps every slot's colour.
2026-11-01 03:14:28 +08:00
TheLegendTubaGuyandSoftFever 041df4031e 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>
2026-11-01 02:35:55 +08:00
SoftFever d6447efdb4 Merge branch 'main' into feature/mcp 2026-11-01 01:27:31 +08:00
SoftFever 5cc5fb7f9c Fix a crash when closing OrcaSlicer with a Bambu LAN printer connected (#17087) 2026-11-01 00:27:03 +08:00
SoftFever 913c622574 Remember the last printer and keep AMS-synced filaments across restarts (#17086) 2026-11-01 00:26:17 +08:00
SoftFever 7136e78c5b Name the open dialog when a script step times out waiting for its job 2026-10-31 23:45:23 +08:00
SoftFever b9127cb454 Tell MCP agents when a call fails because the display is off 2026-10-31 23:16:07 +08:00
SoftFever b90392d393 Report frames that failed to encode in stop_recording's result 2026-10-31 23:02:16 +08:00
SoftFever a07f29cf4f Stop the MCP stdio bridge leaving a quit OrcaSlicer as a zombie process 2026-10-31 23:02:16 +08:00
SoftFever e4889b6acb Add missing includes in the MCP sources and the recording dialog 2026-10-31 22:51:21 +08:00
SoftFever b3d3374f8b Fix MCP canvas captures failing right after a tab switch on Wayland 2026-10-31 22:47:31 +08:00
SoftFever 27cafaa06c Read nozzle diameters correctly when the UI language uses a decimal comma (#17079) 2026-10-31 20:35:45 +08:00
SoftFever d6e2cd0a46 Merge branch 'main' into feature/mcp 2026-10-31 18:23:32 +08:00
SoftFever 457ed1aacb Let MCP agents read and drive web dialogs and plugin pages
Agents can also answer a native message box that is already open (Windows and Linux), and URLs in
replies hide credential values.
2026-10-31 17:56:38 +08:00
SoftFever 8e37d7d4b2 Match closer colours and the same filament sub-type in Convenience mode 2026-10-31 14:25:00 +08:00
SoftFever aa66e41e64 Group a filament onto the nozzle that has it loaded in Filament-Saving mode 2026-10-31 14:25:00 +08:00
Kris Austin 7ac46c9a61 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
2026-10-30 22:00:00 -05:00
SwineFlew931 9b4f84a923 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
2026-10-30 21:58:08 -05:00
Arthur Portoandraistlin7447 fcd96ad91c 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>
2026-10-30 21:56:12 -05:00
Ian Bassi 304924a69a Fix infill and surface filaments overriding each other in Filament for features (#17058) 2026-10-30 18:38:40 -03:00
Kiss Lorand a4a5100879 Fix build-plate-only tree supports inside XY clearance (#17060) 2026-10-30 18:15:56 -03:00
Gazi Faysal Jubayer 98b539c3e6 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
2026-10-30 14:16:22 -05:00
SoftFever fb07e32a9f Keep the Run Script dialog in sight while a script runs on macOS 2026-10-31 02:55:33 +08:00
SoftFever 16df8452f6 Show the recording and screenshot icons in the Speed Dial at full size 2026-10-31 02:23:57 +08:00
SoftFever 7bafc3928c Add a script editor with suggestions and saving to the Run Script dialog 2026-10-31 02:13:22 +08:00
Kris Austin eda4062d68 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
2026-10-31 01:45:47 +08:00
SoftFever 58fee96e30 Keep the Run Script dialog in front after its file picker closes on macOS 2026-10-31 00:15:14 +08:00
SoftFever a4dffc92de Merge branch 'main' into feature/mcp 2026-10-30 23:53:28 +08:00
Ian Bassi 3bc827066d Fix tooltip line breaks and ambiguous msgids in all languages (#17055) 2026-10-30 12:52:34 -03:00
SoftFever 385471a32f Make the MCP tools easier for agents to use
get_settings now gives each setting's description and settings page and finds settings by what
they do, replacing explain_settings. set_view orbits the camera by degrees, the same on every
install, and a painting stroke that would miss the object is refused with the pixel to start it
at instead of turning the camera. Tools accept the argument names and forms agents commonly use,
save_project refuses a .gcode.3mf path, and select range-checks part and instance indices.
2026-10-30 23:43:23 +08:00
SoftFever 4439b743a8 Show a REC pill in the tab bar while a recording runs 2026-10-30 23:30:32 +08:00
Kiss Lorand b1953ab423 Fix transform gizmos not updating after pressing Tab (#16921)
Fix transform gizmo refresh after tabbing
2026-10-30 23:20:19 +08:00
mgoioganaandRodrigo Faselli f894d08881 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>
2026-10-30 12:19:24 -03:00
SoftFever 48deb31a50 Let agents ask for an MP4 when starting a recording 2026-10-30 20:47:56 +08:00
SoftFever 15277639a0 Make recording overlays opt-in, with pointer and caption switches in Start Recording 2026-10-30 20:19:36 +08:00
SoftFever 6c1518aa61 Stop the app flickering while a recording runs on Windows 2026-10-30 19:23:12 +08:00
SoftFever abe28edbe7 Merge branch 'main' into fix/ams-sync-preset-override 2026-10-30 18:50:23 +08:00
SoftFever 23fe913936 Keep a slot's user preset when AMS sync reports the same filament 2026-10-30 18:48:37 +08:00
SoftFever c56d9968a1 Add app recording and screenshots for MCP agents and the Help menu
Agents can record OrcaSlicer to video, captioned with the current tool call, and encode it to MP4.
People get Take Screenshot and Start/Stop Recording in the Speed Dial and the Help menu, with a
dialog for the recording and encoding settings.
2026-10-30 18:41:40 +08:00
Chris Martinkovic 6372a37d71 Accessibility Improvements for Buttons and checkboxes (MacOS and Windows) (#16788)
Accessibility improvements for custom UI buttons and checkboxes
2026-10-30 15:51:44 +08:00
HanifKoh 9992b585b0 Name the Filament and the Line in the Adaptive Pressure Advance Model Warning (#17033)
The slice-time warning for an invalid Adaptive Pressure Advance model
only said that the model "for one or more extruders may contain invalid
values". It now names the filament and carries the validator's message,
which identifies the line, on a second line. The check no longer stops
at the first invalid model, so every filament with one gets its own
notification.
2026-10-30 13:31:51 +08:00
HanifKoh 9e5110d593 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.
2026-10-30 12:50:03 +08:00
HanifKoh efe735853a 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.
2026-10-30 12:49:51 +08:00
SoftFever c9db694c32 Add a Run Script dialog for running MCP scripts in the app 2026-10-30 07:46:10 +08:00
29e1899571 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>
2026-10-29 18:06:26 -03:00
foXaCe f273fe8ac1 Add printing_filament_types placeholder for the output filename (#14706)
Adds the printing_filament_types placeholder. It lists the filament types that are actually printed on the plate, with duplicates removed, in filament order, joined with "_" (for example ABS_PLA). It works in the file name template and in custom G-code. Before slicing, the file name shows the placeholder unfilled, the same way print_time does.

Nothing changes for templates that don't use it.
2026-10-29 15:53:19 -05:00
Clifford 5ea64864ef 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.
2026-10-29 15:50:57 -05:00