mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-22 21:50:51 -05:00
A vendor's installed preset cache survives an app upgrade, and the dictionary records the type every option was written as. When a build reads a cache written by a build that typed an option differently, the reader dropped the option and the preset fell back to the collection default, which is not what the vendor's JSON says. enable_arc_fitting became an enum in 2.5.0-beta, so every vendor whose bundle was not bumped between the alpha and the beta now loads with arc fitting off from the alpha's cache, and the alpha reads the beta's cache the same way. Read such a value by the writer's type and hand its text to set_deserialize through a scratch config, so handle_legacy and the bool/enum substitution run on it exactly as for a JSON profile and a failed parse leaves nothing behind. A text this build cannot place is still dropped, reported once per key per file.
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: