Commit Graph
33050 Commits
Author SHA1 Message Date
SoftFever 75d117f669 Explain in the MCP design doc why tools have no output schema 2026-11-04 12:28:00 +08:00
SoftFever 5e5571a99f Make the MCP tool descriptions shorter and consistent, with the UI locators described once 2026-11-04 04:03:04 +08:00
SoftFever 3050fbc6a6 Tell agents what list_objects ids are for and how paged replies continue 2026-11-04 03:22:00 +08:00
SoftFever 11ec4d8970 Show agents the selection, the Python setting and the Design tab in get_state 2026-11-04 02:06:30 +08:00
SoftFever 8f61a3a34e Let agents select hidden filaments and printers by name 2026-11-04 01:43:48 +08:00
SoftFever e4ee75e749 Ask for approval only on MCP calls that delete without undo, and mark the tools that reach outside the app 2026-11-04 01:06:55 +08:00
SoftFever ec0f3d864f Tell agents which scope a setting belongs to when they name the wrong one or none 2026-11-03 23:56:08 +08:00
SoftFever f776208c94 Document the whole orca Python API and search every catalog from api_describe 2026-11-03 23:10:10 +08:00
SoftFever ee0314dee2 Merge branch 'main' into feature/mcp 2026-11-03 16:28:57 +08:00
SoftFever cc05d87607 Run Python scripts like python file.py, with the whole plugin API 2026-11-03 16:12:04 +08:00
SoftFever 55e760a483 Split .py plugin dependencies only at the commas between items (#17196) 2026-11-03 16:07:56 +08:00
Damir Galeevandyw4z fa5f7e3db4 Keep original body names when importing STEP, AMF and 3MF geometry (#17050)
* Keep original body names when importing STEP, AMF and 3MF geometry

STEP, AMF and 3MF bodies keep the names stored in the file. The three formats share one geometry import path with matching dialogs, per-format Preferences and cleanup of unsupported characters. AMF body groups load as one object, nested groups are flattened, and a CAD 3MF is imported as geometry.

* Use the app's widgets in the geometry import dialogs

Check boxes, radio buttons and the name replacement field in the STEP,
AMF/3MF and name cleanup dialogs now use the app's own controls instead
of the native ones; the name cleanup preview uses the dialogs' label font.

* Address review: AMF layout, Open Project cancel, part visibility

- AMF: the import dialog offers "Separate objects (as before)" first and
  uses it by default, so files from PrusaSlicer and Slic3r, which keep a
  whole plate in one constellation, load as separate objects again. The
  assembly modes are opt-in.
- File > Open Project with a CAD 3MF replaces the project only after the
  import dialogs were answered and the file was read with geometry to load.
  A Cancel or an empty file keeps the current project, its unsaved state,
  notifications and preview state; close_with_confirm() can hand back its
  closing steps for this.
- The object list no longer changes the model while it checks whether a
  single-object import hides its parts: ModelObject::hides_imported_parts()
  is used by the list, Split to parts and its menu check, and the painting
  gizmos' list update shows or hides the parts when painting changes.
  Removing the part rows keeps the object a container for its instances.
- Progress: staged reading takes the first part of the bar and never goes
  back within a file; the load loop takes the rest.
- A constellation id equal to an object id is logged as a warning.
- set_import_volume_order() is defined next to sort_objects().

* Address review: part rename on drag, Multi-part check for unplaced AMF

- Dragging a part of an imported object cancels a name editor that is
  still open before the part rows are rebuilt. On GTK the editor opened by
  pressing the selected row outlived the deleted row and wrote its name
  into another part.
- The Multi-part check reads zero for objects the file does not place, as
  min_z() did in Release builds, instead of their mesh height: the meshes
  are already centered by then, so different heights asked the question
  where main does not.
- Non-printable AMF groups skip the Multi-part question only in the
  assembly modes; Separate objects asks as before.
- The first AMF load mode is "Load as separate objects".

---------

Co-authored-by: yw4z <ywsyildiz@gmail.com>
2026-11-03 14:14:17 +08:00
yw4z e2acd9ec06 Speed up startup by skipping repeated refreshes and building the UV editor on first use (#16930)
Startup to the main window is about 280 ms faster with 24 filaments and about 170 ms faster with 4 (Windows, Bambu H2S, median of 4 runs).

- Filament lists are refreshed once per config change instead of once for each of `filament_colour`, `filament_type` and `filament_is_support`.
- The UV editor pane is built the first time it is shown, through `Lazy<T>`, and keeps its saved dock position when it was not built in a session.
- The SLA import dialog is built on first use, through `Lazy<T>`.
- The sidebar and main window are no longer frozen while the window is hidden.
- The filament combos are not filled before the main window is shown. The printer tab fills them once while presets load.
- The object settings refresh is skipped until the main window is shown, when no object can be selected yet.
2026-11-02 18:12:53 -06:00
Kiss Lorand 896557bce5 Fix spiral vase slicing with height ranges (#17154) 2026-11-02 17:25:07 -03:00
yw4z e8ebe3451a Fix: Object list Name column not refitted when the vertical scrollbar toggles on Windows (#17169)
* init

* revert changes for linux
2026-11-02 20:07:52 +03:00
Lam Wei Lun a5210459ee FIX: Show the connected AMS type in the AMS settings dialog (#17159)
The supported AMS firmwares were stored in an unordered_map, so the AMS
type combo listed them in an unspecified order and then selected the
current firmware by treating its id as a combo row. With an AMS Lite
(id 0) the dialog showed "AMS/AMS 2 Pro/AMS HT", and choosing a type
sent the row index as the firmware id, so it could request the opposite
firmware.

Store the firmwares in a std::map, so iteration is ordered by firmware
id and the id stays a valid combo row index.

Fixes #17125
2026-11-02 23:19:33 +08:00
Ian Chua fcab66ca9e fix: revert native device tab flag (#17162) 2026-11-02 22:09:49 +08:00
yw4z d9f6b69506 Preferences dialog: re organize items with Behaviour and Files tab (#17156)
init
2026-11-02 12:24:59 +03:00
HanifKoh 5fb129f1f3 Read a Retyped Option From the Preset Cache as a JSON Profile Would (#17047)
A vendor's installed preset cache survives an app upgrade, and the
dictionary records the type every option was written as. When a build
reads a cache written by a build that typed an option differently, the
reader dropped the option and the preset fell back to the collection
default, which is not what the vendor's JSON says. enable_arc_fitting
became an enum in 2.5.0-beta, so every vendor whose bundle was not bumped
between the alpha and the beta now loads with arc fitting off from the
alpha's cache, and the alpha reads the beta's cache the same way.

Read such a value by the writer's type and hand its text to
set_deserialize through a scratch config, so handle_legacy and the
bool/enum substitution run on it exactly as for a JSON profile and a
failed parse leaves nothing behind. A text this build cannot place is
still dropped, reported once per key per file.
2026-11-02 17:20:33 +08:00
SoftFever 99018203de Add Python scripts and plugin tools to the MCP server
The MCP tools are listed in core, API and UI lanes. With Python scripts turned on in Preferences, agents
and people can run Python against the open app; plugins holding the tools permission can call the tools,
and plugins can offer operations of their own to agents. Calls can pin object and volume ids so a stale
index is refused, and run_script takes a script as JSON text as well as an object.
2026-11-02 16:05:13 +08:00
HanifKoh 06bccd5570 Close the Settings and Object Searches on Esc (#17118)
On Linux, Esc in the settings search reached the printer or filament
settings dialog, which closed while the search popup kept its input grab.
On Wayland this froze the whole UI; on X11 the popup stayed on screen and
swallowed the next click. Esc in the object list search did nothing.

Both search popups now handle Esc themselves: it closes the search and
goes no further. In the settings search, focus returns to the search
button, so the dialog stays open and a second Esc closes it.
2026-11-02 15:16:17 +08:00
fa1k3andSoftFever 5fd0edf5cc Apply the Z shrinkage compensation to height ranges (#16491)
The height ranges are uncompensated print heights. The layer height profile
clipped them against the compensated object height, and the region ranges
were compared with the compensated slices and volume boxes without scaling,
so the range's layer height and its settings ended up at different heights.

The region ranges are now scaled by the Z compensation (not on belt printers,
whose slices are taken in the rotated frame), and the cached regions are only
reused while their ranges are unchanged.

Co-authored-by: SoftFever <softfeverever@gmail.com>
2026-11-02 14:59:49 +08:00
Joseph RobertsonandClaude Opus 5.5 3ac1b0078d Belt printer: lay the brim as high above the belt as the part's outer wall (#16757)
On a belt the brim and the part's outer wall didn't land at the same
height above the belt, so no single endstop or Y offset setting worked
for both (#16705). Brim lines sat at a fixed 0.75 layer height above
the belt. The outer wall where it rests on the belt sits half a layer
up, because the layer is sliced at mid-height, plus half its width
times tan(tilt), because it is inset half a width from the slice edge.
At 45 degrees with 0.32 mm layers and a 0.4 mm wall that is 0.24
against 0.36 mm. Brim lines now sit at the clearance of the outer wall
that rests on the belt in their own band's layer, with XY contour
compensation included. Each line's bead is built from its spacing and
clearance, so it fills its cell however small the clearance gets.
Flow::with_cross_section(), used before, delivers only a quarter of the
area once it falls back to a round bead.

The first-layer test measured from the nozzle, so a wall resting on
the belt never counted as first layer and printed at full speed with
the fan on, and the raised brim would have dropped out too. It now
measures from the belt under the edge of the bead. Travels use the
width of the path they lead to. Brim lines are as wide as the bands
are far apart, not as a bead, so they always count as resting on the
belt.

Speed, flow ratio and acceleration are chosen once per path, and a
wall loop runs from the belt up the part, so the whole loop took
whatever its seam point got. Belt paths are now cut where they cross
the edge of the first-layer band or a step of the slow_down_layers
ramp. Each piece is judged by the heights of all its points. Small-area
flow compensation keeps using the original line lengths.

Non-belt printers are unaffected.


Claude-Session: https://claude.ai/code/session_01Ux9BwdWCA7N8UG7ftaNkWg

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 14:37:17 +08:00
fa1k3andSoftFever a837652833 Apply the Z shrinkage compensation once to the belt height (#16490)
On a belt printer the slicing height comes from the box of the mesh under
trafo_centered(), which already carries the shrinkage compensation, and
SlicingParameters::create_from_config() scaled it by the Z compensation again.
With a Z shrinkage above 100 % the top of the part was not sliced.

The belt build height check now also compares the compensated height when the
object is too tall, so an object that only fits after the compensation is no
longer refused.

Co-authored-by: SoftFever <softfeverever@gmail.com>
2026-11-02 14:34:32 +08:00
HanifKoh 6c96e41162 Keep the Scarf Ramp at Its Exact Length Past a Vertex on a Straight Line (#17030)
A scarf ramp that would end less than half a step before the next loop
vertex was extended to that vertex, so that no flat stub follows the ramp.
Arachne places the wall's vertices a little differently on every layer, and
arc fitting moves them further, so the ramp grew by a different amount on
neighbouring layers: the scarf end, which the preview draws as the seam,
stepped sideways by up to half a step from one layer to the next.

Where the vertex lies within an eighth of a common line width of the
straight line from the exact ramp end to the vertex after it, measured in
3D so a Z contour is kept, the flat path now skips that vertex instead. The
ramp keeps its exact length and ends at the same place on every layer, and
the first flat segment is still at least as long as the one that followed
the vertex. At a corner, or when the vertex ends the path, the ramp is
extended as before.
2026-11-02 12:42:52 +08:00
b3819e7c9e FIX: Disable "Scale to build volume" context menu item for volumes (#16353)
* Menu: disable "Scale to build volume" when it cannot apply

The enable condition Plater::can_scale_to_print_volume() already existed (used by the native command) but the context menu item ignored it, so the item was always enabled. Wire it in, so the item is greyed out for cut objects, for an empty selection and for bed shapes other than rectangle/circle. Matches BambuStudio.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7uDtamzhNGT6PFwmVdRJ8

* Menu: add "Scale to build volume" to the multi-selection context menu

The item was only offered when a single object was selected. Add it to the
context menu shown for several selected objects as well; it uses the same
enable condition, so it is greyed out when it cannot apply.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYra1zfuVBUu8unsTTXHVN

* Menu: show "Scale to build volume" in the single-object context menu

create_object_menu() is not called (see MenuFactory::init), so the single-object
menu is built by create_extra_object_menu() and the item that lives in
create_common_object_menu() never reached it; only the SLA menu used it.
Add the item after "Drop" in the extra object menu.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYra1zfuVBUu8unsTTXHVN

* Scale to build volume: disable it for a selection of parts, where it has no effect

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GYra1zfuVBUu8unsTTXHVN

* Disable menu item for context menu

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: yw4z <ywsyildiz@gmail.com>
2026-11-02 03:33:24 +03:00
EldenrootandClaude b044fbacfa Clone dialog: the Fill button tooltip says instances, not copies (#17152)
The button fills the bed with instances of the object, like the "Fill bed with
instances" menu item, which already has translations. The copy method it used
to describe no longer exists.


Claude-Session: https://claude.ai/code/session_01QnfT3xX6vcDahKMAM9kgzT

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 03:02:15 +03:00
Kiss Lorand 2a8abac43d Fix false spiral vase material error for height range overrides (#17143) 2026-11-01 19:00:14 -03:00
Rodrigo Faselli 533d4c3e9e Print bridges at bridge speed when slowing down for curled perimeters (#17144)
With slowdown_for_curled_perimeters on, the fully unsupported entry of the overhang speed table was overhang_4_4_speed for every role. Since #14735 samples the inside of a line, the unsupported middle of an anchored bridge strand got that speed. Bridge infill now uses bridge_speed there, like the branch without curled slowdown. Other roles keep their old speeds.
2026-11-01 14:23:32 -06:00
Noisyfox b3f8d0af15 Fix Mesh Boolean crash on meshes with unreferenced vertices (#17080)
Mesh boolean crashed in the CGAL volume check when a mesh had vertices that no triangle used. The conversion to CGAL now removes those vertices and renumbers the rest. The conversion used by UV unwrapping still keeps the original vertex numbering.
2026-11-01 14:20:34 -06:00
Kiss Lorand 49770913a5 Fix printable tooltip on rows without a printable checkbox (#17076) 2026-11-01 16:18:20 -03:00
Alexandre Folle de MenezesandIan Bassi 95a2732145 UTF-8, SVG and STEP should always be in UPPERCASE (#17092)
Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
2026-11-01 10:40:12 -03:00
SoftFever b5517b693e Write an ordered download table into draft release notes (#17117) 2026-11-01 18:10:32 +08:00
SoftFever d1d8204dc1 Keep the time-format tests passing when daylight saving ends (#17116) 2026-11-01 17:54:09 +08:00
SoftFever f31843dcd1 Merge branch 'main' into feature/mcp 2026-11-01 17:40:28 +08:00
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 bb4c092ae4 Show 3D-Fuel Pro PCTG ESD with its brand in the filament list (#17115) 2026-11-01 16:01:37 +08:00
Ian BassiandRodrigo Faselli 3aedd50bcb Draw the Section View Cut Face in Its Part's Color (#17105)
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
2026-10-31 19:04:53 -03:00
Ian Bassi 4a41281761 Fix "it's" typo in Snapmaker U1 start G-code comment (#17099) 2026-10-31 17:27:54 -03: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
Felix14_v2 4045a87b70 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
2026-11-01 01:01:37 +08:00
Alexandre Folle de MenezesandIan Bassi 4ab172fd33 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>
2026-11-01 01:00:36 +08:00
Thalis Antunes 4274ea6bb3 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.
2026-11-01 00:59:05 +08:00
Alec JohnsonandAlec Johnson 3ca96a0891 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>
2026-11-01 00:58:29 +08:00
Sezgin AÇIKGÖZ efd65b7334 Update OpenEYE Peacock V2 printer and process profiles (#17028)
Signed-off-by: Sezgin AÇIKGÖZ <sezginacikgoz@mail.com>
2026-11-01 00:56:41 +08:00
Aditya-Sharma-12nandCursor ffdb5da100 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>
2026-11-01 00:53:02 +08:00