* Load startup plugins after the presets are loaded
The startup plugin loads ran on the load thread while the main thread
was still starting the network and had not loaded the presets yet. A
plugin that reads the presets while it registers, such as through
full_config_value(), reached PresetBundle::full_fff_config() while
filament_presets was still empty and crashed reading filament_presets[0].
A plugin that got there a little later read the presets while
load_presets() was rebuilding them.
Start the startup loads after load_current_presets(). A printer agent
that a plugin registers after that point is already installed by the
late registration path.
Fixes#17792
* Build the full config of a bundle whose presets are not loaded yet
A new PresetBundle has no filament_presets until load_presets() runs,
and full_fff_config() read filament_presets[0] anyway, which crashed any
caller that asked for the full config before the presets loaded. Treat
such a bundle as having one filament, the edited filament preset.
#17743 pinned the source by commit alone, which was the right fix, and added
disable-shallow-clone with it. That flag is what now makes the fetch expensive.
flatpak-builder passes the commit as the ref when no branch or tag is set (get_branch in
builder-source-git.c), then lookup_full_ref in builder-git.c looks that ref up, matching
either a ref name or a ref whose tip is that commit. The commit we pin is now tagged in
the fork, so b44c39c1 is the tip of refs/tags/orca-3.3.2-1 and the lookup resolves it:
$ git ls-remote https://github.com/OrcaSlicer/Orca-deps-wxWidgets
b44c39c100975a0ac0e46f937aa3f3eae5e18631 refs/tags/orca-3.3.2-1
With the lookup resolving, flatpak-builder fetches that ref at depth 1. Setting
disable-shallow-clone skips the lookup entirely and falls through to the full
"fetch origin *:*" instead. It also reaches the submodules, which git_mirror_submodules
fetches with the same flags, so wxWidgets' twelve submodules are fetched in full rather
than at depth 1.
Dropping it costs no safety. The lookup falls back to the full fetch on its own if the
pinned commit is ever not a ref tip, which is the case the flag was added for.
The comment claimed the full clone was needed to check out a commit that is not a branch
tip. GitHub serves a depth-1 fetch of an arbitrary commit, so that was not the reason
either. It now just says why the pin names no branch.
The CMake deps recipe is untouched.
Build OpenCV with an empty CPU_DISPATCH, so it compiles only its baseline CPU code and skips the extra per-CPU copies (SSE4.1 to AVX-512 on x64, NEON DOTPROD on ARM64) that it chooses between at runtime. The baseline is unchanged, so there is no new CPU requirement. This cuts OpenCV's build time and makes the app about 4 to 5 MB smaller.
Painting a whole model with a filament other than its own (T3 on a Snapmaker U1, for example) and turning on spiral vase failed validation with "Spiral (vase) mode does not work when an object contains more than one material", although only the painted filament prints.
When every facet of every model part is painted, the check now uses the painted filaments instead of the object's own. It still refuses when mmu_segmented_region_max_width or mmu_segmented_region_interlocking_depth is above 0, because the paint then covers only a band near the walls and the rest prints with the object's filament. Segmentation ignores both settings when beam interlocking is on, so that case is allowed.
Fixes#17072
Co-authored-by: raistlin7447 <kris.austin@gmail.com>
The AppImage's AppRun exports LC_ALL=C, so wxWidgets detects en_US as the
system language and the best-translation match is dropped. When neither
en_US nor en_GB is installed, load_language() runs out of candidates and
closes the app with "Switching Orca Slicer to language en_US failed".
On non-Apple Unix systems, the environment's locale is now the last step
of the fallback chain, since wxLocale::IsAvailable() can't report it. When
nothing else is installed and the environment's locale can be created,
wxLocale is initialized with wxLANGUAGE_DEFAULT and the selected
dictionary is kept. If the environment's locale is missing too, the app
shows the same error as before.
wxWidgets' own catalog is now loaded after the dictionary language is set
on every path, so its dialogs follow the UI language when the locale falls
back to a different one. When the locale matches the language, nothing
changes. The locale switch logs name the locale that was actually set.
Fixes#17809
Happy Hare can write a lane_data entry for every gate with only the lane number set. Orca took that as the answer and showed every slot empty without asking Happy Hare's mmu object. When every lane is empty, sync now tries Happy Hare and then Creality CFS, and keeps the empty lane layout if neither reports filament. Lane data with filament in it keeps its priority.
The object list deletes an object's ModelObject before its row, and removes the
row's part rows one by one. On macOS each removal makes the outline reload the
object row at once, and GetChildren's import order read the freed ModelObject.
Deleting a multi-part object, or merging its parts with Mesh boolean, crashed
when that memory had been reused.
GetChildren now reads the row's object only while the model still holds it
(ObjectDataViewModel::live_model_object, a pointer comparison). The import order
read came in with #17050, so no release carries the crash.
The Export Preset Bundle list is sized to exactly fit its checkboxes,
capped at 1200 px wide. When long preset names or high display scaling
push the content past that cap, a horizontal scrollbar appears inside
the list and takes its height from the one-row client area, so the
checkboxes are hidden and nothing can be selected. Reserve the
scrollbar's height when the width is capped.
Fixes#17824
- Pressing T or clicking the Text toolbar button while the Text tool is open now closes it, like the other gizmos. It closes the same way as the Done button, so empty text is still removed.
- With several instances of a text object selected, T and the toolbar button now edit the existing text instead of adding a new text part to the object.
A project doesn't save a filament's compatible_printers or compatible_prints. When a project with an edited filament preset was opened again, both lists came in empty and the preset's compatible printers reset to All.
load_external_preset now leaves the two keys alone when it applies a project filament over an existing preset. When a later filament slot becomes a new "Name(file.3mf)" preset, that preset copies the lists from the preset the project names.
The test covers the first slot over the named preset and over the inherited parent, and a later slot over an embedded preset and as a new copy.
A part, a modifier or a layer range can set its own outer wall, inner
wall, sparse infill, internal solid infill, top surface or bottom
surface filament. The slicer prints with them, but
PartPlate::get_extruders() and get_extruders_under_cli() read these
settings only from the print and object configs. A filament that only a
part's feature used was missing from the plate's filament list, so on a
dual-nozzle printer the custom grouping dialog left it out and Prepare
hid the prime tower.
Both walks now share a helper that also reads the feature filaments of
each part, modifier and layer range. A mixed filament still expands to
its components as it does for object settings.
A printer switch or a filament delete can leave filament ids past the
last slot. The plate now resolves them as the slicer does. An object's,
part's or layer range's id counts as filament 1, including a part's own
filament. A print-wide id follows PresetBundle::full_config() in the
GUI, which resets a feature or brim id to the default and caps a
support id at the last slot. From the CLI it follows the slicer, which
prints a feature or support id with filament 1.
Fixes#17728
In Touchpad camera mode, releasing Shift after a pan or Alt after an orbit left the camera move active. The next right-click then skipped the menu and, since #17432, the object selection.
Finish the pan on Shift release and the orbit on Alt release. This replaces the Windows-only Alt release handling from #8249, which stopped the orbit but still left the next right-click ignored.
Fixes#17844
Signed-off-by: Sergei Rozhkov <zmod@zAdd a "Flow calibration" checkbox to the Flashforge send dialog, shown only for the Creator 5 and Creator 5 Pro. It sets the flowCalibration upload header, which was hardcoded to false. Other printers still send false.mod.link>
- Register the bundled Sarabun fonts with wxWidgets in `Label::initSysFont()`, so a Thai UI on Linux falls back to Sarabun instead of showing boxes when the system has no Thai font. The Linux check that skips registration when fontconfig already has the bundled fonts now includes Sarabun.
- Add "Sarabun Medium" to the Text tool's bundled font fallback. Windows lists Sarabun under that name, so "Sarabun" never matched and a Thai UI got the English default text.
Slice all listed every filament slot in the custom nozzle grouping
dialog, so a mixed filament showed up as its own spool. Slice plate
already lists only physical filaments, because get_extruders() expands
a mixed slot into its components. Skip the mixed slots for Slice all
too. The mixed slot keeps its entry in the saved filament maps, but the
dialog no longer sets it, the same as Slice plate.
Fixes#17712
Exporting all sliced plates put every plate's filament ids and colors into the selected plate's Metadata/plate_N.json, and left the other plates' lists empty. export_3mf now indexes the bounding-box data by each plate's own index.
That data stays on the plate between exports, and the writer adds a plate_N.json for every plate that has it. So the export clears every plate's filament lists first, then fills in the plates it exports. Plates left out of an export get empty lists, and repeat exports don't duplicate entries.
Adding a physical filament inserts it ahead of the mixed filaments. Height ranges and the per-feature filament settings (outer and inner walls, sparse and internal solid infill, top and bottom surfaces) kept their old slot numbers, so an assignment to a mix printed with the new physical filament instead.
Shift those assignments with the mixes when a filament is added, and move them with the deleted or merged slot when a filament is removed. This covers the process preset, objects, parts, modifiers and height ranges. Inherited (Default) assignments are unchanged.
When a published 3MF import moves mixed filaments, imported parts and published process settings follow the author's slot moves, and process settings kept from the receiver follow the receiver's own mixes. A receiver mix that moved no longer redirects the author's references to the physical filament in that slot.
Fixes#17727
Port the Kobra 3 Max V2 printer, process and filament profiles from Anycubic Slicer Next (profile bundle 1.3.2609.02) for the 0.25, 0.4, 0.6 and 0.8 mm nozzles. All four nozzles are hardened steel, and the 0.25 nozzle is V2 only.
Anycubic's zig-zag sparse infill becomes rectilinear, the same conversion Orca applies to legacy configs.
Move the logo in the shared Kobra 3 Max bed texture to Anycubic's revised position, which Anycubic Slicer Next uses for both the original Kobra 3 Max and the V2.
The Flashforge filename sanitizer replaced every non-ASCII byte with `_`, so a file named `Тест.gcode` reached the printer as `________.gcode`. For uploads through the local HTTP API, only the characters FlashPrint rejects (`< > [ ] : / \ | ? * "`) and control characters are now replaced. Non-ASCII text, spaces and parentheses are kept. The legacy TCP upload still uses the strict ASCII sanitizer.
* init
* fix assembly
* fix text instances and storing rotated items on assembly
* unposed source as new object
* simplify comments
* update text object
* fix object looses positioning after deleting volumes
* fix scale properties not used for instances on assembly view
* fix undo history for scale not reflected to assembly view
* apply exact scaling to assembly view for fixing skewed scalings
* fix cant create proper instances from skewed objects
* Preserve assembly poses when splitting an object into parts
---------
Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
With remember_printer_config on, switching printers rebuilds the filament list from the new printer's saved selection but only refreshed the sidebar. The plates kept their filament maps sized for the old filament count, and Print::apply took them over the resized project maps, so the flush reorder read past the end of the filament list. Resize the plates' filament maps and print sequences on the switch, and cut filament maps longer than the filament count in Print::apply.
Fixes#17562
Keep only the first 2 extruder types in the calibration preset page
A Snapmaker U1 matches a preset with 4 extruder types, and the page wrote
all of them into a list sized for 2. Linux builds aborted on the vector
assertion; other builds wrote past the end.
InputIpAddressDialog centers itself on the main frame and then moves up by
50 DIP, with nothing clamping the result to the display. wxWidgets pulls a
centered window back onto the display, but for a window taller than the work
area its last step is to bring the bottom edge into view, which leaves the top
off screen. The 50 DIP shift then adds to that. At 350% display scaling it is
175 physical pixels, so the title bar, the first line and step 1 all end up
above the top edge, as reported in #17749. The dialog has no resize border and
the title bar is the part that goes off screen, so it cannot be dragged back
into view either.
Clamp the final position to the work area of the display the dialog was
centered on. The clamp moves the dialog only when it would fall outside the
work area, so one that already fits keeps its exact position and size. Every
later Layout() and Fit() in this dialog preserves its top left corner, so
clamping once after it is positioned is enough to keep the title bar reachable.
* 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.
Custom G-codes and wipe tower positions are stored by plate index, and reordering plates left them at the old index.
- Moving a plate reorders `wipe_tower_x` and `wipe_tower_y` with it.
- `PartPlateList::remap_custom_gcodes()` re-keys `plates_custom_gcodes` by plate ID after a plate move, a plate deletion and an undo/redo jump. Entries of a plate that an undo removes are kept and restored when the plate comes back.
- Undo/redo restores every changed wipe tower position instead of only the first.
Restore a maximized main window without resizing it on X11
Mutter/Muffin turn a client resize of an undecorated window to exactly the
monitor rect into a fullscreen window, so the main frame came up fullscreen
instead of maximized when the panel reserved no strut (#17191). On X11, skip
SetSize when the saved state is maximized and skip window_pos_sanitize for
maximized or fullscreen windows. Windows and macOS keep the resize, which
sets the normal size Restore Down returns to.
persist_window_geometry also ignored the window name and stored the non-modal
settings dialog under window_mainframe. Use the window's own name.
With "No sparse layers" on, Arrange and Fill bed keep objects as far from the compacted prime tower as the slicer's clearance check needs. Objects stay the toolhead radius away, or 4 mm when none of the objects being placed is taller than nozzle_height. Objects taller than the rod clearance are also kept out of the tower's Y span, and the final alignment of the pile is skipped in that case. Placing a newly added object keeps the full toolhead radius.
With the option off, arranging is unchanged.
Fixes#17566
Skin and skeleton line widths are only validated for Locked Zag regions, the only pattern that prints them. A bridge as wide as the layer is tall is accepted without thick bridges.
Flow::with_cross_section() gave a line shrunk into a round strand a quarter of the cross-section it asked for, using the radius as its diameter. This changes G-code for bridges, overhang walls and support bottom interfaces without thick bridges whenever the bridge flow ratio is low enough to shrink the line to the layer height.
tests/slic3rutils/test_part_plate.cpp includes slic3r/GUI/PartPlate.hpp,
which reaches wx/wxprec.h and so needs the Windows headers first. Without
them clang-cl stops in wx/msw/private.h on WNDPROC, RGB, VK_SHIFT and
GetWindowRect, and the Windows arm64 build fails.
The slicer target has a precompiled header that supplies those headers and
the test target does not, and MSVC accepts the file anyway, so only the
arm64 build breaks. Windows arm64 is skipped on a pull request that has no
build-windows-arm64 label, so the test merged in #17664 without that leg
ever compiling it.
tests/slic3rutils/test_scene_raycaster.cpp is the only other test in this
target that pulls in the GUI headers, and it opens with the same prelude.
The server-connected handler selects the agent's current machine again every time the cloud
server connects. For a LAN printer this makes the Bambu network plug-in unsubscribe the device,
which drops the LAN session that selecting the printer opened. A connect still in flight fails
with "called UnSubscribeDevice". One that already succeeded stays down with no connect result, so
the printer shows as connected while every command fails with -4 and Print fails with -4030.
Since #17086, OrcaSlicer connects the last LAN Bambu printer at startup, so a LAN user hits this
on most starts. A cloud reconnect later in a session drops the session the same way.
The selection is a cloud subscription, so a LAN printer does not need it. Move the re-select into
DeviceManager::reselect_cloud_machine(), which skips a LAN-mode printer and behaves as before for
any other machine.
Fixes#17766
The Orca Cloud and Bambu Cloud login dialog had a fixed size of 650x840 DIP. At 150% scaling on a 1080p screen it was taller than the work area, so its title bar was off screen and it could not be moved or closed.
The size is now clamped to the work area of the display the main window is on, and after centering the dialog is moved to stay inside that area. The dialog is also resizable, and the webview fills it when it is resized.
Selecting several instances of one object with the Move gizmo in Object coordinates, by clicking them or with Ctrl+A, made get_selected_single_intance() index the instance list with -1 and crash. It now returns nullptr when the selection has no single instance, and the gizmo uses the first volume's instance transform instead.
The change filament G-code of the three CFS-C profiles moved to X0 Y245,
the park of the K1 Max's 300 mm bed. Use X42 Y180, as the other 220 mm
K-series profiles and Creality Print's K1C CFS profile do.
Fixes#17677
Prepare and Preview share one page window, the Plater. On every switch between them, wx hid that window and showed it again right away. On GNOME Wayland this unmapped and remapped the GL canvases and triggered a mutter subsurface bug, which left a frozen copy of the Prepare view at the top-left of the window (#17189). Notebook no longer hides the page that is being selected, and switches between other tabs are unchanged.
Upload and Print picked the start command's folder from the model that /info reports, and every
unlisted model got /mnt/UDISK. A Nebula Pad reports the printer it is fitted to, such as
"Ender-3 V2 Neo", and keeps its G-code under /usr/data, so its firmware ignored the start.
Before the start, the host now asks the printer for its G-code file list (reqGcodeFile), as
Creality Print does, and starts the upload from the path listed for it. K1-family firmware answers
retGcodeFileInfo and K2-family firmware retGcodeFileInfo2. A list without the upload is asked for
again until files_reply passes. When the printer doesn't list the upload, the model table decides
as before, and it now includes "Ender-3 V2 Neo".
A multi-nozzle printer whose profile never sets physical_extruder_map, such as the Snapmaker U1, carries the single-entry default {0}. PartPlate::get_physical_extruder_by_filament_id indexed it by logical extruder, so Print plate read past its end for any plate that used filament 2 or later, and the Flatpak aborted there.
PartPlate's lookup, the printer sync in Plater and the three calibration setups in CalibUtils now read the map through effective_physical_extruder_map. It returns the profile's map when its length matches the nozzle count and the identity otherwise, so printers that ship a full map get the same values as before. The helper moves unchanged from IMEXHelpers to PrintConfig and PresetBundle, and its tests move to test_config.cpp. The G-code paths are unchanged.
Since 2.4.0, Elegoo Link only tried OctoPrint for presets whose printer_model doesn't start with "Elegoo Centauri", so a Centauri Carbon on a custom preset failed Test and upload with a 404. Those presets now try OctoPrint first and fall back to the Centauri Carbon check and upload, as 2.3.2 did. When both checks fail, Test and upload report the OctoPrint error. Elegoo Link now calls OctoPrint's upload after its own check, so `/api/version` is requested only once. Centauri Carbon and Centauri Carbon 2 presets are unchanged.
Fixes#17570
`GCodeProcessor::m_pressure_advance` was not set in `reset()`, so G-code without a pressure advance command showed a random PA value in the preview. It is now reset to 0 with the other per-move state, and a test checks that a reset processor does not keep the previous G-code's value.