mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-25 23:01:09 -05:00
With a raft, an object too thin for any layer gets an empty layer
list. Two functions read it as if it had an entry.
- groupingVolumesForBrim() reads the first layer, and slice() calls it
before its own check for an empty list.
- With Precise Z height on, adjust_layer_series_to_align_object_height()
read the last entry. This also runs in Print::validate(), so it
crashed before slicing started.
Both functions now return early on an empty list, so slicing reaches
the existing "No layers were detected" error.
Fixes #17009
(cherry picked from commit 59f0cc3806)
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: