Commit Graph
896 Commits
Author SHA1 Message Date
HanifKoh eb790b0a09 Let Users Hide, Reorder and Group the Prepare Toolbar and Gizmo Bar Icons (#17632)
* Add a Toolbar Layout Model With Merge and Round-Trip Tests

* Order and Hide Gizmo Bar Icons From the Saved Toolbar Layout

* Order and Hide Main Toolbar Items From the Saved Toolbar Layout

* Add a Customize Toolbar Dialog to the View Menu and Preferences

* Include What the Toolbar Layout Files Use

* Use the Gizmos' Contexts for Their Names and Never Press a Hidden Layer Editing Button

* Skip the Hidden Layer Editing Path When the Toolbar Has No Such Item

* Highlight the Selected Row and Move Rows in Place in the Customize Toolbar Dialog

A click anywhere on a full-width row selects it, and the selected row gets the list-selection colour. Selecting, moving and Reset now restyle or reorder the existing rows instead of rebuilding both lists, which flickered and, on GTK, made the rows 1px taller after each Reset. The up and down arrows sit to the left of the lists, and Reset to default joins OK and Cancel at the bottom.

* Show When a Row Can Move and Select a Row When Its Box Is Ticked

The up and down arrows are enabled, and drawn brighter, only when the selected row can move that way. Ticking a row's box also selects it, so it can be moved straight away, and an icon the current printer or selection leaves off the toolbar now says so.

* Show the Move Arrows on the Selected Row

The arrows sat in a column of their own to the left of both lists, which made them look as if they moved everything selected. Each row now has its own pair, shown only while the row is selected, so they plainly move that row. Their space is kept while hidden, so rows do not shift when the selection changes, and the pointer follows the arrow after a move so repeated clicks keep moving the same row. The arrows never take keyboard focus, so a disabled arrow cannot hand focus to another control; Alt+Up and Alt+Down move the selected row instead, and Tab selects a row by focusing its box.

* Leave the Pointer Where It Is After a Row Moves

Moving the pointer onto the arrow after each move kept repeated clicks on the same row, but apps moving the pointer is unexpected, macOS guidelines discourage it, and GNOME on Wayland ignores it, so the dialog behaved differently by platform. Without it the row slides out from under the pointer after a move, so a click where another row's hidden arrows sit now does nothing; before, a second click there selected the neighbour and a third moved it back. Alt+Up and Alt+Down remain the quick way to move a row several places.

* Move the Dialog's Row Actions to a Side Column and Add a Toolbar Right-Click Menu

The Customize Toolbar dialog gets a left column with Move up and Move
down, rows sit without gaps, the hovered row gets a border and the
selected row is highlighted without bold. Right-clicking the toolbar or
the gizmo bar on the Prepare canvas opens a menu with Customize Toolbar.

* Leave No Gap for Hidden Icons in the Toolbar Width

* Size the Customize Toolbar Dialog's Buttons and Lists Like the Mockup

* Save Named Gizmo Groups in the Toolbar Layout

The toolbar layout gains a list of named groups of gizmo bar icons. Loading drops members that are not gizmo bar icons or that an earlier group already holds, drops groups left with fewer than two members, and keeps each group's members together in the bar order. Entries this build does not recognise as groups are kept on save.

* Add Grouping, Ungrouping and Moving Rules for Gizmo Groups

The toolbar layout model gains the edits the Customize Toolbar dialog needs: the gizmo rows with a header before each group, making a group, adding rows to one, ungrouping, renaming, the default group name, and moving a row one step. A header moves its whole group, a plain row jumps a whole group, and a member moves within its group and leaves it at the group's edge; a group left with one member is removed.

* Compute a Gizmo Bar Slot for Each Group

Each group with at least two icons on the bar becomes one slot at its first icon's place. The slot shows the open tool, else the group's most recently used tool that can be opened, else the first that can, so it greys only when none of its tools can be opened.

* Collapse Each Gizmo Group Into One Bar Button With a List

Each group with two or more icons on the bar becomes one button with a corner triangle and the group's name as its tooltip. Clicking it opens a list under it, headed by the name, with each tool's icon, name and shortcut; a click on another group's button switches lists. A button does nothing while none of its own tools can be opened, a list closes when its group loses its slot, and the button shows the open or most recently used tool that can be opened.

* Let Users Group, Rename and Ungroup Gizmos in the Customize Toolbar Dialog

Ctrl+click or Shift+click selects several gizmo rows, and Group selected makes them a named group, asking for a name pre-filled with Group N; with a group and other rows selected it adds them to that group. A group shows as a bold header row with its members indented under it; its box is half-ticked when only some members show, and clicking it shows or hides them all. Rename (or a double-click on the header) and Ungroup act on the selected group, and the row arrows and Alt+Up/Down move a whole group, move a member within its group, or take it out at the group's edge. Rows rebuilt after the dialog is shown keep the row height measured when it opened.

* Let Users Group Object Tools Icons and Show Each Group as an Icon Grid

Groups now work in the Object tools column as well as the gizmo bar; a
group holds icons of one list, and the separator cannot be grouped. The
dialog's left column holds Rename, Move up, Move down, Group selected and
Ungroup. A group's list is a grid of toolbar-size icons, three per row,
named in their tooltips, and opens even when every member is disabled.
Three dots under a group's button mark it, in place of the corner
triangle.

* Match the Group Lists and the Dialog's Group Selection to the Mockup

The side buttons are full size with the short labels Up, Down and Group,
and each list is only as wide as its rows. Selecting a group highlights
its members with it. A group's list gets an accent border, and its title
is drawn in the normal text colour.

* Refresh Both Lists' Rows When Groups Change in the Customize Toolbar Dialog

Groups of both lists share one vector, so making or removing a group in
one list renumbers the other list's groups. Syncing only the changed
list left the other list's rows with stale group numbers, which picked
the wrong rows to highlight and could read past the end of the groups
on Ungroup or Reset.

* Ignore Focus Moves While the Customize Toolbar Dialog Syncs Its Rows

* Share One Group List Between the Two Bars and Open the Toolbar Menu From the Whole Strip

The main toolbar and the gizmo bar draw their group lists, dots and close
test with shared code, so the main toolbar's list now also stays on the
canvas. The lists' tooltips keep the usual border, open lists close when
the Customize Toolbar dialog opens, and a right click on the divider, the
gaps between gizmo icons or the assembly view button opens the menu too.

Smaller trims: one list of the gizmos shown on the bar, one gizmo id
lookup, a shorter choice of the tool a group shows, boost's trim, and
fewer one-line wrappers.

* Let a Quick Second Click Reopen a Group List

A press within the double-click time arrives as a double click, which group buttons ignored, so reopening a list right after closing it took another click. Group buttons now toggle on a double click like the bars' other icons, and a double click elsewhere closes an open list like a plain press.

* Keep the Upstream Main Toolbar Code and Reorder It Afterwards

Apply the saved layout to the stock toolbar with GLToolbar::apply_layout instead of rebuilding it from a builder map, open the toolbar menu from one right-click hook in GLCanvas3D, let the existing input-window path draw a gizmo opened while the gizmo bar is empty, read the layout through load_toolbar_layout, compute the gizmo bar's group slots once per pass, and skip folding when there are no groups and no group slots are left.

* Hide Empty Toolbars Fully and Keep the Group Dots Under Windows

- An empty main toolbar or gizmo bar takes no width and draws nothing, and a
  divider only follows a bar that shows icons.
- The group dots are drawn on ImGui's background list, so windows and
  tooltips cover them.
- The main toolbar is placed before its dots and group list are drawn, so
  they follow it right after a resize.
- A test ties every gizmo type to its id in the layout list.

* Keep the MCP Server's Gizmo List and Toolbar Clicks Right With Grouped and Hidden Icons

* Share Plain 16 px Arrow Icons for the Toolbar Dialog's Move Buttons

* Keep the Toolbar Dialog's Width and Keyboard Focus Steady While Rows Move

Measure a group header from its text, and only when its name changes:
the best size never drops below the min size, so every move widened
the header by 6 px and refitted the dialog.

Treat a double click on the Move buttons and row arrows as a press, so
a quick second click on Windows is not lost. Focus the clicked row's
box, so Space toggles that row, and let Up and Down select the row
they focus, as Tab does.

The MCP refusal for a hidden toolbar item now says when the printer,
not the layout, hides it.

* Ungroup Only the Selected Icons and Widen the List of a Large Toolbar Group

- Ungroup with only members selected takes those icons out of the group
  and puts them right below it; with the header selected it removes the
  group, as before. Either way the rows stay selected.
- A member moved up or down stops at its group's first and last place
  instead of leaving the group there.
- Group skips a separator in the selection instead of being disabled.
- A group's list is four icons wide from ten icons and five wide from
  seventeen.
- The main toolbar's group list takes the canvas's display scale, as the
  gizmo bar's does, so both have the same padding on a 2x display.
- Focus moves are ignored while the buttons take their new state: on
  Windows a focused button that gets disabled hands its focus to a row.

* Let a Click Decide the Selection After the Keyboard Was Used in the Toolbar Dialog

Once Tab, Up or Down had been pressed, a row's box taking the focus
selected its row from then on, also when a mouse click moved the focus
there. A click where a row's hidden arrows sit then selected that row,
and a Ctrl+click that deselected a row on its own area, not its name,
made it the only selection. A click on a row now ends that state until
the next Tab or arrow key. Left and Right count as Up and Down do, so
the row they focus is selected too.
2026-12-01 13:15:39 +08:00
Kiss Lorand de4fd11a32 Fix preference path in mixed temperature warning (#18013)
Fix mixed temperature preference path in warning

Update the incompatible nozzle temperature message to point to
Preferences / Behaviour / Prepare. Update the localization catalogs
using the existing translated preference labels.
2026-11-30 21:57:29 +03:00
SoftFever 4723f694ca Merge branch 'main' into feature/mcp 2026-11-26 03:39:47 +08:00
SoftFever 18eb4f8459 Organize the MCP tool code by place and the Design commands by heading
Each place an agent finds commands under (Objects, Plates, View and windows and so on) now has one source file
under Mcp/Tools/, and the Design tab's commands have one file per Design heading, so a developer finds a command
where tool_list lists it and adds a new one beside its neighbours. A unit test fails when a command is added in
another place's file. No change to what agents or people see: the command catalog is byte-identical.
2026-11-24 23:50:10 +08:00
SoftFever 5eefef82fc Add the Agent Activity pane
A new pane, opened from View > Agent Activity or the Speed Dial, lists live what an AI agent and other
automation (Action Replay, Run Script, the command line, plugins) do in OrcaSlicer while it is open: each
call with its source, what it changed, failures with their reason, the steps of a run and the dialogs a
rule answered. Opening a call shows its request and response with passwords, keys and typed text masked,
so a person can watch and check what an agent is doing to their project.
2026-11-24 16:38:50 +08:00
Damir Galeev aefb6b3d66 Precise Seam: intersect modifiers with the model surface, not the perimeter centerline (#17557)
* Precise Seam: intersect modifiers with the model surface, not the perimeter centerline

A modifier acted where it crossed the centerline of the printed perimeter, which
lies about half a line width inside the model surface and deeper at corners. It
now acts where it crosses the model surface.

- The surface is reconstructed from the centerline by a shift of half the
  external perimeter width less the XY compensation and a 5 um margin, clipped
  against the modifier and carried back onto the centerline.
- On elephant foot layers and with Arachne the shift is measured against the
  layer's islands.
- With fuzzy skin the perimeter generator keeps the centerline before texturing
  (ExtrusionLoop::untextured); modifiers are evaluated on it and the points are
  carried onto the noisy loop.
- Open extrusions are left out of Precise Seam.
- The "had no effect" warning no longer names the centerline.

See docs/HLSD/precise-seam.md.

* Precise Seam: fuzzy skin window per loop kind; no negative search reach

The transfer window of a fuzzy skin loop counted every region with fuzzy
skin on the layer, including those that do not texture its kind (a Hole
region for contours, an External one for holes). FuzzySkin.cpp skips such
regions, so mixed settings widened the transfer search and the weak zone
order check. The window is now computed for contours and holes separately
from the regions should_fuzzify() selects, as a function in
PreciseSeamInternal.hpp with a unit test.

The modifier prefilter of the measured shift no longer takes a negative
reach: a compensation beyond the whole wall depth leaves no shift.

* Precise Seam: shift narrow classic loops by their own line; keep the warning translations

Without thin wall detection the classic generator prints an island too narrow for
two lines with a thinner line and insets the loop by half of that width, while the
surface shift used the region's external perimeter width. The reconstructed
surface lay 0.055 x spacing - 5 um outside the model, more than the margin, so a
modifier flush against the face acted on such loops. The shift of a classic loop
now comes from the width of its own external perimeter path; Arachne loops are
measured as before.

The two "had no effect on the seam" messages lost their bracketed part, and the
catalogs dropped the old entries without getting the new ones. The entries are
back under the new msgids with the existing translations, trimmed of the
bracketed part.

* Precise Seam: keep the aligned seam inside an Enforced modifier zone

A loop with an Enforced zone in effect now has exact ends: alignment no longer
moves the seam up to 0.2 mm past a zone boundary, and Random does not sample
the edge leaving the zone.

* Precise Seam: test both ends of an Enforced zone in alignment

The regression test for the aligned seam leaving an Enforced modifier zone
ran on the right face only, where the stepping end of the zone is the last
candidate of the Enforced run. It now also runs on the left face, where the
same end is the first candidate, so both directions of the allowed arc are
checked.

The HLSD notes that a zone reduced to a single candidate holds the aligned
seam on it, so alignment cannot smooth its shift between layers.
2026-11-23 18:32:08 +08:00
SoftFever 867ba9b005 Merge branch 'main' into feature/mcp 2026-11-21 18:57:39 +08:00
SoftFever 0584100037 Let MCP clients start a print, send to a Bambu printer, and test the print host
print_start opens the dialog the Print button opens for the selected printer, for one plate or all of them, and is
refused where the button would be disabled, such as for a plate not sliced. printer_send, and the Send G-code Speed
Dial action with it, open the dialog that sends to a Bambu printer's storage where they used to refuse such a printer,
and take the plate to send. printer_test_host checks that the printer's print host answers, as the Test button of its
connection dialog does.
2026-11-19 22:40:22 +08:00
Lam Wei Lun 1de01873ae Fix mouse ear brim missing at a rounded corner depending on object orientation (#17163)
Mouse ear placement no longer depends on where the outline starts. The old code simplified the outline with Douglas-Peucker, which is anchored on its first vertex, so rotating a part changed which rounded corners got an ear.

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

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

Fixes #17119
2026-11-19 08:01:51 -06:00
SoftFever d25593e29b Let MCP clients open the painting, Measure, Simplify and Mesh Boolean gizmos on a named object
object_paint, object_measure, object_simplify and part_boolean open their gizmo on the object, instance or part a
client names, where before a client had to know the gizmo existed and click its icon after selecting. A refused
opening says why in the gizmo's own terms, such as Mesh Boolean needing two parts, and leaves the selection and the
undo history as they were.
2026-11-19 20:21:41 +08:00
Kim Gunwoo 4f71398a0f Fix korean translations for left and right extruder (#17612)
* Fix korean translations for left and right extruder

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

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

* Update Korean translations for extruder terms

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

I've updated the eight additional strings in the same PR to use "압출기" consistently with the Korean localization.
2026-11-19 02:47:30 +03:00
SoftFever d64e10f4dd Regroup the slicer's MCP commands and let each run from its arguments
Outside the Design tab an agent had 175 commands, 50 of them in the tool
list. There are now 118, named by what they act on (`object_`, `plate_`,
`preset_`, `filament_`, `plugin_` and so on), and 115 are listed. Each takes
its target and values in the call, acts on the selection when it names no
target and says what it acted on; an old name is refused. Printers and
system filaments install and uninstall, preferences read and write, plugins
enable, reload, uninstall and refresh, and objects reorder, with no dialog
to drive.

The Speed Dial keeps its 129 tiles under the same ids. Eight defects in the
rows these commands share with the menus are fixed. For a person: an object
row that cannot run says why instead of "Select an object first.", rows
that failed no longer claim success, Duplicate Plate can be undone, and
Refresh Plugins picked while a refresh runs now runs after it instead of
beside it.
2026-11-18 16:50:32 +08:00
SoftFever 54c5c8d2a7 revert localization/i18n/OrcaSlicer.pot 2026-11-15 01:18:04 +08:00
SoftFever fece418ae0 Make the automation runtime its own subsystem, with MCP as one front end
Everything that drives OrcaSlicer by command (the dispatch of the command
catalog, jobs, the journal, replays, Python scripts, recordings) lived
inside the MCP server's service class. So Action Replay, the Run Script
panel, a plugin's tool call, a person's recording and a run from the
command line each had to start "the MCP service", with all of its GUI
hooks, although none of them needs a server or an agent.

The automation runtime is now a subsystem of its own. It starts the first
time a front end asks for it and knows none of them. The MCP endpoint
(HTTP, the protocol, the token, the discovery file, the takeover of a port
another window holds) is one front end beside the others, opened and
closed without stopping what the others run. The widget inspector, menu
capture and ImGui item recording are turned on only by a front end that
drives the GUI, so a person's recording or long command does not carry
them.

The part of the runtime that needs no GUI is the library
libslic3r_automation, built without wxWidgets and tested by its own suite,
automation_tests. A wx dependency in it fails to build, and its tests no
longer link the GUI library or the embedded Python.

The command line has one option set for this: --run FILE runs a replay or
a Python script once the GUI is ready, with --outputdir for its files, and
--unrestricted-scripts and --cad turn their settings on for one run
without saving them. --mcp-run, --mcp-run-out and --mcp-token are gone;
the scripts setting is python_scripts_unrestricted and a session's output
folder is <datadir>/automation/out. get_app_state reports ready and
version at the top level, and its mcp block describes the endpoint only.

No change to slicing output.
2026-11-14 23:41:01 +08:00
SoftFever 822775179b Merge branch 'main' into feature/mcp 2026-11-14 01:05:25 +08:00
SoftFever 1ef24b7d34 Hold Speed Dial commands, MCP tools and Design tools in one command catalog
Every command takes JSON arguments and has one function for a person and for
automation: with no arguments it does what a person's pick does, and with
arguments it runs silently. The Design tab's CAD tools are commands that
call_tool runs, and they show as Speed Dial tiles on the Design tab.
2026-11-13 20:59:31 +08:00
SoftFever 0616068e26 Run commands, tools and the plugin API through one operations layer
A Speed Dial command, the MCP tool that does the same thing and the plugin
API's preset calls now run one shared operation, so every route accepts and
refuses the same states, with one wording and a code for each refusal. An
import by a command or a tool is one undo step, and import_file adds geometry
only.

The cases where two routes behaved differently now behave the same: a project
is not saved under a .gcode.3mf name, an empty project exports as .3mf but not
as STL, arrange runs from any view and with a gizmo open, a mixed-colour
filament slot is refused as one, a hidden preset is shown before it is
selected, and a layer is refused while the Preview has none.
2026-11-12 22:06:10 +08:00
Ian Bassi db9968b9ee Painted modifiers (#16213) 2026-11-12 10:38:03 -03:00
SoftFever 0b9c47be29 Move the Design tab's MCP code next to the MCP server 2026-11-09 20:42:30 +08:00
SoftFever 348c801203 Keep the call_cad_tool registration with the Design tab's MCP code 2026-11-09 20:40:36 +08:00
SoftFever 70ca70ceb3 Give MCP tools plain names and call recorded tool lists replays 2026-11-09 20:21:02 +08:00
SoftFever 643319c40b Split Run Script into Action Replay and a docked Python Run Script panel 2026-11-09 03:25:25 +08:00
SoftFever a52e232385 Merge branch 'main' into feature/mcp 2026-11-07 03:12:51 +08:00
SoftFever eedd56991c Merge branch 'main' into feature/mcp 2026-11-07 02:51:37 +08:00
Kris Austin e2c2641acf Give the plugin Permissions tab its own Processes translation (#17339) 2026-11-07 02:47:11 +08:00
Kris AustinandSoftFever 8b9e977458 Refresh the translation catalogs for 2.5.0 (#17336)
* Regenerate the translation template and catalogs for 2.5.0

* Restore and fill translations for the strings added since 2026-11-03

* correct Chinese translations

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
2026-11-07 01:55:20 +08:00
SoftFever 10c9df3578 Complete Simplified and Traditional Chinese translations (#17333) 2026-11-07 01:16:42 +08:00
SoftFever b11009123c Update translation catalogs and fix run_gettext warnings (#17332)
* update locales

* Stop marking the plugin permissions example URL for translation
2026-11-07 01:04:20 +08:00
Felix14_v2 c43c560bbe Update OrcaSlicer_ru.po (#17225)
* Update OrcaSlicer_ru.po

* Oops

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po

* Update OrcaSlicer_ru.po
2026-11-07 00:08:49 +08:00
932b492252 feat: Add plugin permission management to the Plugins dialog (#17285)
* feat: permissions tab in plugin dialog ui draft

* feat: allow full access, make threading a boolean

* fix: clang-tidy

* feat: save changes button

* fix: clang-tidy

* fix: only allow permission editing when plugin not loaded

* fix: plugin permission drafts, target validation, and sidecar synchronization

* fix: minor html/css changes

* fix: Make plugin permission edits immediate and thread-safe

* refactor: rehaul UI

* fix: add don't show again to request permission dialog

* fix: permission request dialog ui

* fix: clean up plugin permission dialog and mutation APIs

* fix: retry Windows plugin permission file replacement

* test: extract and cover plugin permission validators

* fix: show clear denial for worker plugin file operations

* fix: clang-tidy

* docs: clarify plugin filesystem permissions and clean up declaration

* fix: handle the 3 states of install state read

* fix: match equivalent paths for exact filesystem grants

* fix: preserve unreadable plugin state and allow socket grant editing

* Recover plugins whose install-state file cannot be parsed

---------

Co-authored-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
Co-authored-by: SoftFever <softfeverever@gmail.com>
2026-11-07 00:00:18 +08:00
SoftFever 17a745e30c Merge branch 'main' into feature/mcp 2026-11-04 13:42:41 +08:00
Valerii Bokhan 0b041740b1 Fix Wipe Inward retraction splitting and sandwich wall offsets (#17160) 2026-11-03 21:41:16 -03:00
Alexandre Folle de Menezes 26a3937771 Standardize the spelling of "RepRapFirmware" (#17174)
Standardize the spelling of "RepRap Firmware"
2026-11-03 16:23:12 +03:00
SoftFever ee0314dee2 Merge branch 'main' into feature/mcp 2026-11-03 16:28:57 +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
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
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 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
SoftFever d6e2cd0a46 Merge branch 'main' into feature/mcp 2026-10-31 18:23:32 +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 4439b743a8 Show a REC pill in the tab bar while a recording runs 2026-10-30 23:30:32 +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
SoftFever c9db694c32 Add a Run Script dialog for running MCP scripts in the app 2026-10-30 07:46:10 +08:00
Eminyandyw4z 3936995b6e Update Turkish translations (#16943)
* Update Turkish translations

* Match option names to the existing Turkish labels

* Drop the AI Translated comments from the reviewed Turkish entries

---------

Co-authored-by: yw4z <ywsyildiz@gmail.com>
2026-10-28 01:34:52 +03:00
Ian Bassi 0ef9015904 Ask for the size of a primitive when adding it (#16848) 2026-10-26 15:01:47 -03:00
SoftFever 6e8a14f3aa Translate the new strings into French 2026-10-26 23:34:21 +08:00
SoftFever 69756de353 Translate the new strings into German 2026-10-26 23:12:50 +08:00
SoftFever 3ce5122b22 Translate the new strings into Japanese (#16905)
# Description

Translates the 217 new strings in the Japanese catalog, so it has no
empty entry left. Most are the messages that explain why a setting is
hidden or disabled, and each one quotes the setting's existing Japanese
label or dropdown value, so users can find what to change. Where the
English says "Marlin firmware G-code flavor", the translation names the
dropdown value it refers to, Marlin 2. The rest are the plate menu's
Order By, the discrete-GPU and high-precision G-code options, and the
color picker.

21 entries carry a `# Needs human review` note. Most mention the prime
or wipe tower, a term the glossary still marks as unsettled for
Japanese. The others are three SLA strings about the pad, three that
quote the existing label エアフィルトレーションを有効化 where the glossary has 空気ろ過,
and one whose English says "wrapping detection" while the setting it
gates is "Enable clumping detection".

The Japanese glossary cells for Single Extruder Multi Material and Air
filtration are filled in OrcaSlicer/OrcaSlicer_WIKI#420.

# Screenshots/Recordings/Graphs

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

## Tests

`scripts/run_gettext.sh --full` exits 0 and leaves the catalog
unchanged, and the skill's `check` (which includes `msgfmt
--check-format`) reports no errors for ja. The strings were not checked
in the running app.

<!--
> 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-10-26 22:53:19 +08:00