Files
OrcaSlicer/tests
Hanif Koh 7de85397a6 Keep a Disabled Filament Override Off After a Restart
A child preset stores "nil" both for an override the user switched off and
for a per-variant column it inherits from its parent, and the loader filled
every nil from the parent. Whenever the parent preset sets Retract Before
Wipe or another override, switching it off lasted only until the next
restart, project open or newer cloud copy.

Mark the filament overrides on their option definition with
nil_means_disabled and make is_filament_extruder_override_key answer from
it. Preset::save and the project-embedded preset diff write such an option
with all its columns, and the loader keeps its nil columns while still
mapping them onto the parent's variants by name, so nil in one of these
keys can only mean "off". Every other nullable option keeps nil as
"inherit this column". The cloud diff only force-emits a disabled override
whose default is a real value.
2026-10-19 18:49:44 +08:00
..
2025-12-08 22:42:11 +08:00

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:

  • AGENTS.md is the same guidance in short form, and is what an agent working under tests/ picks up.
  • CATCH2.md is the Catch2 reference, including the mistakes that break a test at runtime.