OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

fix: use raw filament_type in sw_GetFileFilamentMapping to prevent PLA-S remapping

Open kbaker827 opened this issue 6 months ago • 0 comments

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: cache filament_type option pointer; use filament_type_opt->get_at(i) instead of get_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

kbaker827 avatar Jun 02 '26 13:06 kbaker827