A part, a modifier or a layer range can set its own outer wall, inner
wall, sparse infill, internal solid infill, top surface or bottom
surface filament. The slicer prints with them, but
PartPlate::get_extruders() and get_extruders_under_cli() read these
settings only from the print and object configs. A filament that only a
part's feature used was missing from the plate's filament list, so on a
dual-nozzle printer the custom grouping dialog left it out and Prepare
hid the prime tower.
Both walks now share a helper that also reads the feature filaments of
each part, modifier and layer range. A mixed filament still expands to
its components as it does for object settings.
A printer switch or a filament delete can leave filament ids past the
last slot. The plate now resolves them as the slicer does. An object's,
part's or layer range's id counts as filament 1, including a part's own
filament. A print-wide id follows PresetBundle::full_config() in the
GUI, which resets a feature or brim id to the default and caps a
support id at the last slot. From the CLI it follows the slicer, which
prints a feature or support id with filament 1.
Fixes#17728
tests/slic3rutils/test_part_plate.cpp includes slic3r/GUI/PartPlate.hpp,
which reaches wx/wxprec.h and so needs the Windows headers first. Without
them clang-cl stops in wx/msw/private.h on WNDPROC, RGB, VK_SHIFT and
GetWindowRect, and the Windows arm64 build fails.
The slicer target has a precompiled header that supplies those headers and
the test target does not, and MSVC accepts the file anyway, so only the
arm64 build breaks. Windows arm64 is skipped on a pull request that has no
build-windows-arm64 label, so the test merged in #17664 without that leg
ever compiling it.
tests/slic3rutils/test_scene_raycaster.cpp is the only other test in this
target that pulls in the GUI headers, and it opens with the same prelude.
A multi-nozzle printer whose profile never sets physical_extruder_map, such as the Snapmaker U1, carries the single-entry default {0}. PartPlate::get_physical_extruder_by_filament_id indexed it by logical extruder, so Print plate read past its end for any plate that used filament 2 or later, and the Flatpak aborted there.
PartPlate's lookup, the printer sync in Plater and the three calibration setups in CalibUtils now read the map through effective_physical_extruder_map. It returns the profile's map when its length matches the nozzle count and the identity otherwise, so printers that ship a full map get the same values as before. The helper moves unchanged from IMEXHelpers to PrintConfig and PresetBundle, and its tests move to test_config.cpp. The G-code paths are unchanged.