mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-02 09:48:14 -05:00
The layer count behind [total_layer_count] and "; total layers count" included every object and support layer. process_layer() skips a layer whose tool ordering has no extruder, such as the tip of a cone that is too thin for a wall, so the count could be higher than the layer changes in the file. Printers that report progress from it with SET_PRINT_STATS_INFO then stopped short of the last layer. On flat beds, count only the layers their tool ordering prints. Belt printers keep their own filter. Found by Snapmaker/OrcaSlicer@b070bcfaff, which rewrites the count afterwards instead. Co-authored-by: zengerqi <zengerqi@snapmaker.com>
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: