mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-02 01:43:36 -05:00
A used filament with a flow ratio of 0 sliced in the GUI and wrote E-92233720368547.758 on every extrusion move: GCode::_extrude multiplied the flow by the ratio and divided by it again, giving 0 * 0 / 0 = NaN. The CLI already rejected the value through the config check, but Print::validate never looked at it. Print::validate now stops the slice with an error naming the filament when a used filament's flow ratio is 0 or nil, and _extrude converts the flow to extrusion length with the bare filament cross-section, so the ratio is applied once without a divide.
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: