* Keep Heavy Boost and Plugin Headers Out of Widely Included Headers
Several headers that most of the code includes pulled in large libraries they barely use, so hundreds of files compiled them for nothing:
- Point.hpp, Line.hpp, Polygon.hpp and ExPolygon.hpp included all of Boost.Polygon to declare traits. Point and Line now include only the concept headers they need, and the polygon traits move to BoostPolygonTraits.hpp, included by BridgeDetector.cpp, the one file that runs Boost.Polygon algorithms on polygons.
- ProjectTask.hpp included Boost.Thread and the filesystem streams but only uses boost::filesystem::path.
- Utils.hpp included Boost.DateTime for one inline function, which moves to utils.cpp.
- Semver.hpp used boost::format for two version strings; std::to_string prints the same.
- MainFrame.hpp held PluginPages by value, which brought in the web view and plugin headers; it now holds it by unique_ptr.
- Model.hpp included STEP.hpp, and with it OpenCASCADE, for a forward-declarable type and two typedefs.
Files that relied on these headers arriving indirectly now include what they use.
* Include What the Polygon Traits and the End-Time Helper Use
* Drop Two Unneeded Includes and Include the Filesystem Directory Header
cpack now runs in the background while the portable zip and the PDB archive are packed, and a later step waits for it, prints its log and fails on its exit code. makensis compresses on one core, so the two archive steps no longer add to the job's length.
The windows-11-vs2026-arm runner image 20261112.217.1 moved from MSVC 14.51 to 14.52, and its cl.exe crashes with C1001 while optimizing OCCT's BRepGraph_LayerTopoSupplement.cxx. clang-cl builds compile OCCT with cl on ARM64, so every Windows arm64 deps build on that image fails.
A second OCCT patch compiles that one file without optimization when the compiler is cl targeting ARM64. Other compilers and architectures see no change.
* init
* extend feature set
* update
* fix tidy
* fix tidy
* Update calib_dlg.cpp
* simplify class
* update
* align labels with RadioGroup
* replace ImportCheckBox
* Update LabeledCheckBox.cpp
* apply to more dialog
* add to ai skills
* update
* fix Tooltip only reaches the children on the first call
* fix Label can stay grey after a theme switch
* Update release dialog
* change focus target for all platforms
---------
Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
The Anker file header wrote `;TIME:{print_time_sec}s`. print_time_sec
is only the seconds part of the estimate (0 to 59), so the M5, M5
All-Metal and M5C were told every print takes under a minute. Use
print_time_total_sec, the whole estimate in seconds, and drop the `s`.
tests/CATCH2.md says to run the suites with `--order rand --warn
NoAssertions`. On main that fails in fff_print (8 test cases), libslic3r
(15), sla_print (1) and slic3rutils (4), even when each case runs alone.
ctest never passed the flag, so nothing stopped new ones. Most of these
tests have SECTIONs that only set up state, with the assertions after
them, or generated cases that return early for combinations that don't
apply. Catch2 counts assertions per section, so each of those reads as
an empty test.
Where only a value or a short setup changes, use GENERATE or a table and
generate only the combinations that apply. Elsewhere, end each section
with a call to a local check. ctest now passes `--warn NoAssertions`, so
CI fails a case or section that asserts nothing, and tests/AGENTS.md
says so. ctest also passes the CATCH_EXTRA_ARGS cache variable, which
nothing read before, split like a command line, so setting it now takes
effect.
Three tests only wrote a debug mesh or diagram and asserted nothing.
They now check that the Voronoi diagram of the six points is complete,
that hollowing with hfRemoveInsideTriangles removes at least half of the
roughly 400 mm² of the two spheres that lies deeper than the wall, and
that the half cone is closed. The legacy 3MF scenario checked for a
volume map on every plate of a file that has none, so it now also saves
and loads a project with a plate, and its name says so.
* Use WebKit's shared-memory transport on Wayland outside the Flatpak
In a Wayland session, the hardware DMABUF path of Ubuntu's WebKitGTK 2.52
on Intel GPUs froze the Preview, Device and Project tabs and left the 3D
view drawn over other pages. On the default path of a build with EGL,
outside the Flatpak, set WEBKIT_DMABUF_RENDERER_FORCE_SHM=1, as Orca
already does for NVIDIA and virtual machines, so compositing stays on.
WebKitGTK 2.42 and 2.43 have the DMABUF renderer but ignore that switch,
so they get WEBKIT_DISABLE_COMPOSITING_MODE=1 instead. The Flatpak's
runtime WebKitGTK works, so it keeps the hardware path.
A Wayland session is detected by wayland_socket_available(), which looks
for the socket the way wl_display_connect(NULL) does. The no-EGL fallback
and the GUI start-up check use it too, so all three agree with GTK.
is_running_in_flatpak() checks only /.flatpak-info, because a host process
started from a Flatpak can inherit FLATPAK_ID; the data-dir migration and
the Troubleshoot dialog now use it. Both helpers live in libslic3r/Utils
and have unit tests.
Fixes#17381
* Note that Debian's WebKitGTK 2.54 on AMD freezes too
The error panel that "Check the reason" opens in the print, send,
calibration and bind dialogs is a scrolled window with a fixed size.
It starts hidden, and showing it gives it the size it already had.
macOS only sends a size event when the size changes, so the panel
never laid out its rows and drew them all at its top-left corner.
Lay the panel out when it opens.
Fixes#17065
An overhang cluster stored one overhang per layer, so a second overhang
joining the cluster on a layer it already had was dropped and got no tree
support. Store every overhang of the layer, as BambuStudio does since
adb3fbcfc.
A process whose print_extruder_variant has no entry for the printer's extruder type and nozzle volume (a Bowden
printer with a "Direct Drive Standard" process, or a bare "Bowden" variant) made Tab::switch_excluder return
before it mapped the page's variant fields. Editing a per-variant option on the Objects tab then read the end of
that empty map in TabPrintModel::on_value_change and crashed with std::bad_alloc.
switch_excluder now falls back to the extruder's first variant through find_variant_index, as slicing does,
and logs it; get_index_for_extruder keeps returning -1 for its other callers. on_value_change checks the map
lookup and otherwise takes the index from the field id.
The short-tower final unload is only needed on single-extruder MMU printers, which have to pull the
last filament out. Without SEMM the final purge only rams, with no retraction or parking, so a
toolchanger whose filament has multitool ramming on printed those lines in mid-air above the tower.
Generate it for SEMM only.
Since #16867 pads filament_colour to the filament count, every CLI run that loads filament presets without a colour recomputes the flush matrix. Standalone filament presets may omit the per-filament keys that block reads. A missing filament_diameter crashed the CLI, and a short filament_is_support failed the size check.
Grow both to the filament count before the recompute. A missing diameter follows the first filament, as get_at() reads it. A missing support flag is off.
get_min_flush_volumes() also read past the end of filament_long_retractions_when_cut and filament_retraction_distances_when_cut when a filament omitted them. Pad both with the first filament's value, so the flush matrix matches the print.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
OpenVDB, Blosc and OpenEXR are no longer built or searched for by default. Only SLA hollowing uses them, and SLA printing can't be reached in OrcaSlicer. Configure both the deps and the app with `-DSLIC3R_OPENVDB=ON` to build them again.
Without OpenVDB, `sla::generate_interior()` logs a warning and returns an empty interior, and the hollowed-cube SLA test is skipped. The Flatpak manifest no longer downloads the three source archives.
* Fix missing seam markers in the preview on overhanging outer walls
An outer wall that starts on an overhang is labelled "Overhang wall" in
G-code, like the overhanging part of an inner wall, so the preview's seam
detector never opened a candidate for it.
The G-code generator now writes one comment, OUTER_OVERHANG_WALL, before
such a wall. The detector reads it and treats that wall as an outer wall
for seam detection only, so extrusion roles, legend and colours stay the
same. Markers also appear in G-code opened from a file.
* Share the outer wall check and drop the sloped seam test variant
A loop that starts on an overhang never gets a scarf seam, so the tagged
stream with a sloped start could not be generated. The outer wall check
used by the G-code generator and SeamPlacer moves to is_outer_wall(), and
the generator runs it last, after the cheap conditions.
* Fix empty-space right clicks entering cut part selection
Return whether a cut part was hit and discard only a newly initialized part selection on a miss. Preserve existing grouping and skip connector updates when nothing was hit.
Validation: RelWithDebInfo build passed. GUI checked right clicks on empty plate and outside plate preserve preview and an enabled, checked Cut to parts option; an empty click preserves existing grouping.
Local clang-tidy is blocked by wx/msw/wrapcctl.h HDITEM errors also reproduced on the unchanged baseline.
* Enable Cut Reset while part selection is active
Treat active part selection as resettable state even when the plane remains centered and there are no connectors. Reuse reset_cut_plane to clear grouping and restore model rendering.
Validation: RelWithDebInfo build passed. GUI verified actual part selection enables Reset; Reset restores the initial preview and Cut to parts; performing Cut to parts then produces Cube_A and Cube_B under one Cube object.
Local clang-tidy remains blocked by baseline wxWidgets HDITEM errors.
* Avoid rebuilding cut parts for empty-space right clicks
Query the selected volumes' existing original-mesh raycasters before initializing part selection. Use world transforms and ignore cut-plane clipping. Fall back to the existing cut-part test if an original raycaster is unavailable, and retain the final hit/miss cleanup.
Validation: existing RelWithDebInfo build and diff check passed. GUI tested a 262144-triangle torus: five outside clicks and five hole clicks added no cut trace records; actual part clicks built selection, existing grouping survived hole clicks, Reset recovered normal cutting, and Cut to parts produced A/B volumes under one object. Full right-drag gestures and macOS/Linux were not tested. Local clang-tidy remains blocked by baseline wxWidgets HDITEM errors.
* Skip empty undo snapshots when resetting only cut grouping
Create the scoped Reset Cut snapshot only when the plane differs from its initial state or connectors will be removed. Part selection is not serialized, so clearing it alone must not add an ineffective undo entry.
Validation: existing RelWithDebInfo build and diff check passed. GUI and trace logs confirmed grouping-only Reset creates no Reset Cut snapshot, a plane Reset remains undoable from 17.5 mm back to 22.5 mm, and connector-only Reset remains undoable. Local clang-tidy remains blocked by baseline wxWidgets HDITEM errors.
* Clarify Cut Reset tooltip includes part assignments
Describe the cutting plane, connector removal, and part-assignment reset in one translatable message. Add a translator comment explaining the assignments.
Validation: git diff --check passed. Full gettext extraction, merging, and compilation passed for all 23 catalogs in an isolated validation workspace.
---------
Co-authored-by: yw4z <ywsyildiz@gmail.com>
Focus mode hid an object only when its footprint missed the current plate, and the footprint included its modifiers, negative volumes and support enforcers/blockers. A large modifier reaching over another plate kept the object drawn there. Build the footprint from the model parts only, as plate membership does.
The unit test archives packed the whole tests build tree, including every CMakeFiles directory: object files and, on Linux and macOS, about 200 MB per precompiled header. ctest needs none of it. Leaving those directories out shrinks the archive each build uploads and each test job downloads and unpacks. Pack and unpack quietly too: tar -v printed one line per file.
* Build Windows x64 With cl.exe on the build-windows-msvc Label
CI compiles Windows with clang-cl, so an error only cl.exe reports, such as a
class template's virtual members instantiated with the class where clang
defers, reaches main unseen. The build-windows-msvc label gives a pull
request a cl build of x64 that only compiles: build_orca.yml's Windows
packaging, uploads and deploys belong to the clang build, the one that
ships, and the compiler cache is left out, as the Visual Studio generator
takes no launcher. No push build saves a cl deps cache, so a pull request's
first such build builds the deps too.
* Upload the cl.exe Build's Portable Build, Installer and PDB
Under _msvc names, through the arch suffix build_orca.yml already puts in the
artifact names, so a tester can tell them from the clang build's. The clang
build stays the one tested, checked for throw info, packaged for the Store
and deployed.
* Leave the MSVC Build Out of build-all
build-all stands for the three builds every pull request once got. The MSVC
build is another compiler's, never one a pull request got, and the first one
builds the deps too, so a pull request asking for an Intel Mac DMG with
build-all should not wait on it. pick takes a fourth argument that says
whether build-all covers the build; the three existing lines leave it at the
default.
* Move the Flatpak Jobs Into a Reusable Workflow
build_flatpak.yml holds the Flatpak build and its two sandbox unit-test jobs, moved verbatim, so a second workflow can call them. Build all calls it for every event it built the Flatpak for before.
* Build the Flatpak, macOS x86_64 and Windows arm64 for Pull Requests on Request
Build all no longer builds them for a pull request: the Flatpak is the slowest
Linux leg, a macOS x86_64 build holds one of the few hosted macOS runners for
an hour, and Windows arm64 doubles the Windows legs. Pushes, the nightly and
dispatches still build everything, and a pull request's macOS arm64 build ships
as its own DMG in place of the universal one.
The new build_optional.yml builds them on a label (build-flatpak,
build-macos-x86_64, build-windows-arm64), from when it is added and on every
later push, and builds the Flatpak and Windows arm64 without a label when the
pull request changes anything outside the sources, tests, profiles,
translations and docs, which is where what breaks only those legs lives. Each
build keeps its own concurrency group, which cancel_closed_pr_builds.yml joins.
The macOS admission script now counts the macOS jobs of both workflows, and
build_check_cache.yml names the workflows in its env instead of deriving one
from the caller. The label bot lets a contributor ask for the Flatpak.
* Run the Windows Build Script Tests Only When a Pull Request Changes Them
The three suites build their own fixtures and read nothing else from the
tree, so on a pull request a short Linux job looks for a change to the scripts
or the suites first, and the Windows builds accept the skipped job. Pushes and
the nightly still run them every time.
* Read WORKFLOW Through a Checked Expansion
Shellcheck's SC2153 takes a bare uppercase reference next to the lowercase variable for a misspelling.
* Let the Pull Request Author Ask for Any Optional Build Through the Bot
GitHub starts no workflow from an event the job's own token causes, so the
label bot mints a GitHub App installation token when the app's secrets exist
and adds the build-* labels with it; without them the build starts with the
next push. The run a label starts is an ordinary pull_request run, so a first
pull request's waits for a maintainer's approval as Build all does.
* Build Everything the Labels Ask for in Every Optional Builds Run
Each label added starts a run of its own, and the pull request's checks show
the newest run only, so a run that built its own label's leg alone left the
others looking skipped. Every run now builds everything the labels and the
changed files ask for; the concurrency group of each build cancels the one an
earlier run of the commit started, so the newest run ends with them all.
* Filter Optional Builds Like Build All and Add a build-all Label
The workflow takes Build all's pull_request paths plus the Flatpak packaging,
so a pull request Build all skips, one that only changes an unrelated
workflow or script, gets no optional build and starts none on a label. The
build-all label asks for every optional build at once.
* Keep the Flatpak on Every Pull Request
flatpak-builder compiles with the GNOME SDK's default flags, which include
-D_GLIBCXX_ASSERTIONS, so the Flatpak's unit tests are the only pull request
check that aborts on an out-of-range vector access where the other legs'
Release builds read garbage and pass. Since August that caught four bugs
that changed only src/, tests/ or resources/, which the infra rule would not
have built, and the leg runs on hosted Linux runners, so gating it freed no
macOS runner. Build all calls build_flatpak.yml on pull requests again; the
optional builds are the macOS x86_64 and Windows arm64 ones, and build-all
means those two.
* Revert "Keep the Flatpak on Every Pull Request"
This reverts commit 998e31a99b.
The Flatpak stays behind the build-flatpak label and the infra rule, as
the maintainers prefer.
* Build the Linux Legs With libstdc++'s Assertions
flatpak-builder compiles with the GNOME SDK's default flags, which include
-D_GLIBCXX_ASSERTIONS, so the Flatpak's unit tests were the only pull
request check that aborts on an out-of-range vector access where the other
legs' Release builds read garbage and pass. Pull requests build the Flatpak
on request only now. SLIC3R_GLIBCXX_ASSERTIONS defines the macro for the
OrcaSlicer build, and the Linux legs turn it on, so every pull request keeps
those checks on a leg that always runs. The checks are libstdc++'s
lightweight subset: no class changes layout, so the prebuilt deps link as
they are.
The test compared every one of its 216 combinations against a fresh slice of the final settings, but those settings take only 72 distinct values. Keep each fresh slice and reuse it, which cuts the test's slices from 648 to 504 with the same checks.
BuildIntersectList() merge-sorts the active edges by their new x to find crossings. Most scanbeams have no crossing, so AdjustCurrXAndCopyToSEL() now reports whether the edges stayed in order and the sort is skipped when they did.
* Variable layer height on several objects, and with the prime tower on objects of different heights
The variable layer height tool now opens with several objects selected.
Adaptive, Smooth, Reset and manual edits apply to all of them: they share one
profile, the finest layer height any of them asks for at each Z, unless
"Each object separately" is ticked. Every selected object is painted with
its layer heights. With a profile each, up to three objects get a bar of
their own, drawn to one scale, and the bar under the mouse is the one edited.
The prime tower check compares the layers objects are sliced at over the
height they share, rather than the raw profiles, which never matched once the
profile of a lower object ended at its own top. Precise Z height, which fits
the last layers of each object to its own height, is left out of such a
print, with a warning.
* Check the prime tower layers on the sliced objects, and note the new strings for translators
* Include what the new tests use
* Compare the layers as sliced, before the prime tower is generated from them
* Check that precise Z height stays on without a prime tower
* Keep each object's layer height texture on the GPU, and mark only lower tops
The variable layer height tool sent a 1024x1024 texture to the GPU for every
selected object on every frame, and set_config(), run after every edit,
dropped the other objects' textures so that each was generated again.
Each other object now has a texture of its own on the GPU. It is generated
and sent only when its profile, its height or the slicing parameters it shows
change, which set_config() now only asks to check. The object shown sends its
texture only when it is generated, and while the objects share one profile,
those on its layers are drawn with its texture and need none of their own.
The textures of objects no longer selected are freed.
The bars and the layer height curves are built again only when what they
show changes, and each bar is scaled with its own object's layer heights.
A lower object's top is marked only when it is lower than the object shown,
objects ending at the same height share one label, and a label stays on the
canvas and below the one above it.
The comment on precise_z_height_overridden() now says what the override
trades: the tower can join the off-grid layers to the tower layer below, but
a joined layer holds two purges, which makes the tower deeper.
* Fix the precise Z warning, shared profiles across first layers and the bar clicked
- The precise Z override, and its warning, now need an object with precise
Z height on. Every plate with a prime tower and variable layer height on
objects of different heights warned about a setting that is off by
default.
- The objects the override slices again get their slicing parameters back
at once, since validate() reads them before slicing.
- When the objects share one profile, an object that starts its layers
elsewhere than the object shown, with a raft of its own say, keeps its
own. The shared profile starts with the first layer of the object shown,
and PrintObject::update_layer_height_profile() dropped it on such an
object, which then printed at the preset layer height.
- Clicking a bar edits its object, even when no frame was drawn since the
mouse got there.
- Select all is ignored while a profile is painted, and select all plates
while the tool is open.
- The bars' models are made again, not copied, when their number changes:
a copy shares the GPU buffers that the original deletes.
- Objects with no height above the bed are left out of the tool, and a
profile fitted within EPSILON above one of its entries no longer runs
past it.
* Keep the object top labels below the toolbar row
When the toolbar row ends next to the bar, the label of an object that
ends near the top of the tallest one covered the toolbar's last buttons.
Such a label now starts below the row, with its arrow pointing up to the
line on the bar.
* Fill the layer height texture up to the top of the object
The last layer can end under the top of the object, by up to half a
layer, and no layer wrote the cells there. The top face is drawn with
them, so it showed what the buffer held before: black on the texture of
an object made for the first time, or the colours of another object.
The last layer now fills them, with the shade of its top.
* Draw horizontal faces without the layer stripes
A horizontal face lies at one height, so the stripes cannot show on it,
only the shade they have there. That shade changed whenever a layer
under it moved, and the tops flickered at every stroke. Such a face now
gets the plain colour of its layer height, from the 2nd level of the
texture.
That level is now read at its own level of detail instead of with a
bias. On a horizontal face the texture coordinates do not change, so the
GPU picks the 1st level however large the bias, and read it at the
coordinates of the 2nd: the tops showed black, or the colour of another
height. The 110 shader does so where GL_ARB_shader_texture_lod is
available, and keeps the stripes elsewhere.
* Include ObjectID.hpp where ObjectWithTimestamp is used
clang-tidy (misc-include-cleaner) asks for the header to be included directly.
* Find the horizontal faces with the inverse transpose of the world matrix
The variable layer height shader took the normals to world space with the world matrix itself, which is only right under a uniform scale. With a non-uniform scale it drew sloped faces as flat, and once the object was also rotated it missed real flat ones. The normals now go through the inverse transpose of the world matrix, which render_object_volumes() already built for the view normal matrix.
* Note why the precise Z override keys on has_wipe_tower()
Since #16999 the tower is printed only when slicing finds it is needed, so
the override also applies on plates where no tower is printed in the end.