OrcaSlicer
OrcaSlicer copied to clipboard
fix: use raw filament_type in sw_GetFileFilamentMapping to prevent PLA-S remapping
Summary
sw_GetFileFilamentMapping() was calling full_config.get_filament_type() to populate the filament type list sent to the web UI. That function remaps "Generic Support For PLA" to "PLA-S" for display purposes — but the web UI's filament matcher expects the raw stored value, causing filament matching to fail silently for support filaments.
Closes / supersedes #413.
Changes
src/slic3r/GUI/SSWCP.cpp: cachefilament_typeoption pointer; usefilament_type_opt->get_at(i)instead ofget_filament_type()to read the raw stored type without display remapping
Test plan
- [ ] Slice a model with Generic Support For PLA as filament 2
- [ ] Open Print Preprocessing — verify the filament type shows
"Support PLA"(or equivalent raw value) rather than"PLA-S" - [ ] Verify filament matching succeeds in the web UI