Skip to content

1.1.98

Choose a tag to compare

@DMontgomery40 DMontgomery40 released this 17 Nov 04:25
9a590fb

Fixed

  • A slice in two or more colours no longer goes through silently on a printer that can't feed them. Beta 8's DAD replay sliced a two-colour 3MF with declared colours for a P1S with no AMS: it succeeded with 85 filament changes and no warning, and would have been sent as a print that stops 85 times.
    • Every multi-colour slice from slice_stl carries filament_feed: the colours, the filament changes the slicer reports, and whether the printer can feed them.
    • The printer can feed its AMS trays, or without an AMS one external spool per nozzle, read from a fresh status report. A connected printer whose report's AMS block lists no unit (or reports ams_exist_bits of zero) has no AMS; a partial block without its unit list is unknown. Two external spools on a dual-nozzle printer without an AMS feed two colours only with each on its own nozzle, which isn't read here, so that slice is flagged rather than passed; likewise one colour more than the AMS holds on a dual-nozzle printer, which the other nozzle's external spool may feed. An AMS unit reported without its tray list counts as its kind holds (one for an AMS HT, four for an AMS). The model alone never decides it. Colours are counted per plate, the changes of every multi-colour plate are added up, and a slice with no filament change is never refused. The printer's report is the one its status read returns; whether that report is fresh rather than cached is not yet checked.
    • When the printer is known not to feed the colours, the slice is refused with the 1.1.97 shape: code needs-more-filaments, filament_slots, plus the new filament_changes, and a plain slicer_report.message. Example: "This prints in 2 colours. Your printer has no AMS, so it would stop 85 times for you to change filament. Print it in one colour instead, or print each colour as its own part."
    • manual_filament_changes: true returns the slice instead, for a person who will change filament by hand, and says how often it stops.
    • When the printer can't be asked (no credentials, unreachable, use_printer_filaments: false, or a non-Bambu printer), the slice succeeds, flagged, and its message gives the number of changes.
    • fdm_multicolor makes a copy in one colour by default on a printer that can't feed its colours, and the summary says why ("Your printer has no AMS, so it's one colour; ask for two colours if you'll change filament by hand"). cad_design and fdm_slicing point to it.
    • Tested with the DAD-shaped two-colour slice result (69.4 g + 43.8 g, 85 changes) on a stubbed P1S report with no AMS, one with an AMS, and no printer; nothing was sent to a printer.

Validation

  • Full npm test on the release head with the CAD Python; CI on Node 18–24 (and macOS for bambu-printer-mcp).
  • The DAD-shaped two-colour slice (69.4 g + 43.8 g, 85 filament changes) through slice_stl against a stubbed P1S status with no AMS (refused, then accepted with manual_filament_changes: true), with an AMS (passes), and with no printer (flagged).
  • Not validated: no real Bambu Studio slice this round, no physical print, and no printer was contacted. print_3mf's own auto-slice does not run the check yet; Counterpart slices with slice_stl first.