mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-25 23:01:09 -05:00
* Validate Only the Edited Variant's Adaptive PA Model and Accept Spaces in It Since pressure advance became a per-variant filament setting, the Filament tab validated every variant column of the adaptive pressure advance model whenever one was edited. The columns the user never touched still hold the default placeholder, which the validator rejects, so every edit of a multi-variant filament ended in a "Line 1: flow value must be greater than PA value" dialog about a column the user could not see. The check now covers the variant being edited only, as the nozzle temperature checks on the same tab do. The validator also rejected whitespace between the values, which the model parser accepts, so a model typed as "0.027, 8.1416, 2000.0" sliced correctly but warned on every slice. Whitespace is now ignored before the values are checked. Enabling adaptive pressure advance before entering a model warned that the model "may contain invalid values", which only meant that the placeholder is all zeros. That case now gets its own warning saying that no measurements have been entered. * Keep the Empty Adaptive PA Model a Single Filament Column in Its Test Deserializing an empty string into the model option leaves it with no entries, and get_at on an empty vector aborts on a libstdc++ built with assertions, as the Flatpak unit-test lanes are. Presets always hold one column per filament, so set the value directly.