Files
OrcaSlicer/src/slic3r/GUI
Clifford GarwoodandClaude Opus 4.7 c8e7c5678b fix(imex): primary's filament lookup must come from object assignment, not pem default
The pre-slice warning's primary-tool filament lookup (added in
fbc58d2a1d) used resolve_filament_for_head, which returns the FIRST
slot routed to the primary's physical extruder via pem. That's the
right rule for *secondaries* (no object owns them in copy/mirror mode;
filament comes from the per-plate imex_head_filament_map override) but
wrong for the *primary*: the primary prints the actual objects on the
plate, and the slot it uses is whatever the user assigned to those
objects — not whatever happens to be at the head of the AFC manifold.

Symptom on the user's Neo XP 0.6:
  - pem = [0,0,0,0,1,2,3,3] (slots 0-3 share AFC manifold on physical T0)
  - filaments: slot 0 ABS, slot 2 PLA, slots 4-6 PLA, etc.
  - object assigned to slot 2 (PLA), IMEX mode "copy" (T0 primary, T1 copy)
  - User picks slot 5 PLA for T1 via the IMEX ghost picker (writes a
    per-plate imex_head_filament_map).
  - Warning reads slot 0 (ABS) for primary because that's
    first_filament_for_physical_head(pem, 0). Fires "T0 ABS vs T1 PLA
    type mismatch" even though the actual print uses slot 2 (PLA) for
    the primary — slicer and warning disagree.

Split the lookup:
  logical_for_primary(physical_idx)
    Walks plate->get_extruders(true) (1-based slots used by objects on
    this plate), returns the first slot whose pem entry maps to
    physical_idx. Falls back to first_filament_for_physical_head if no
    object on the plate routes to this physical extruder (defensive).

  logical_for_secondary(physical_idx)
    Unchanged behavior: per-plate imex_head_filament_map override with
    first_filament_for_physical_head fallback.

The user-facing "T%d" labels still display the physical extruder index
(carriage identity); only the filament-info lookups change.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 05:07:34 -04:00
..
2022-12-15 04:38:15 -05:00
2026-03-09 20:52:12 +08:00
2025-10-28 15:29:50 +08:00
2025-10-05 16:02:17 +08:00
2025-10-05 16:02:17 +08:00
2026-04-20 19:27:38 -03:00
2026-01-23 17:05:56 +08:00
2026-01-03 23:06:57 +08:00
2025-07-06 11:34:47 +08:00
2026-02-04 11:40:02 +00:00
2023-12-01 10:42:45 +00:00
2022-12-15 04:38:15 -05:00
2022-12-15 04:38:15 -05:00
2026-01-26 19:34:14 +08:00
2023-08-30 23:38:33 +08:00
2025-08-22 20:02:26 +08:00
2026-04-24 15:49:36 +08:00
2023-12-01 10:42:45 +00:00
2025-09-21 13:47:51 +08:00
2025-10-02 09:30:48 +08:00
2025-10-02 09:30:48 +08:00
2026-01-23 17:05:56 +08:00
2026-01-23 17:05:56 +08:00
…
2023-08-09 13:42:41 +08:00
2025-10-02 09:30:48 +08:00
2026-01-23 17:05:56 +08:00
2025-10-28 15:29:56 +08:00
2025-10-28 15:29:56 +08:00
…
2026-01-03 23:06:57 +08:00
2026-01-03 23:06:57 +08:00
2025-09-21 23:01:08 +08:00
2026-01-23 17:05:56 +08:00
2026-03-15 01:42:28 +03:00
2026-03-15 01:42:28 +03:00
2026-01-23 17:05:56 +08:00
2026-03-09 20:36:36 +08:00
2024-07-23 18:00:21 +08:00
2026-01-03 23:06:57 +08:00
2026-01-03 23:06:57 +08:00
2026-01-03 23:06:57 +08:00
2026-01-23 17:05:56 +08:00
2026-01-03 23:06:57 +08:00
2026-02-04 11:40:02 +00:00
2026-01-23 17:05:56 +08:00
2026-01-23 17:05:56 +08:00
2025-10-28 15:30:06 +08:00
2025-11-19 13:51:52 +03:00
2025-10-02 09:30:48 +08:00
2025-10-28 15:29:56 +08:00
2026-01-28 19:04:56 +08:00
2026-01-23 17:05:56 +08:00
2024-05-25 09:11:19 +08:00
2026-03-09 20:52:12 +08:00