Clifford Garwood and Claude 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-04-06 12:40:36 +08:00
2026-03-09 20:52:12 +08:00
2026-04-24 16:28:28 +08:00
2026-04-21 14:56:08 -04:00
2026-04-24 14:20:47 +08:00
2025-10-24 09:59:00 +08:00
2026-04-24 14:48:59 +08:00
2026-03-05 11:33:07 -03:00
2025-05-05 17:59:00 +08:00
2026-04-13 19:45:39 +08:00
2025-10-28 15:29:50 +08:00
2026-04-13 19:45:39 +08:00
2026-02-11 17:16:14 +08:00
2026-04-13 19:45:39 +08:00
2026-03-24 20:50:44 +08:00
2025-10-28 15:29:58 +08:00
2026-03-27 14:53:56 +08:00
2026-01-03 23:06:57 +08:00
2026-03-24 20:50:44 +08:00
2025-10-28 15:29:55 +08:00
2025-10-28 15:29:47 +08:00
2026-03-25 11:28:00 +08:00
2025-06-01 18:35:48 +08:00
2026-03-25 11:28:00 +08:00
2024-01-31 11:23:29 +00:00
2024-01-31 11:23:29 +00:00
2026-03-15 22:19:53 +08:00
2024-04-14 22:07:00 +08:00
2025-10-05 16:02:17 +08:00
2025-09-18 17:04:10 +08:00
2026-03-24 20:50:44 +08:00
2024-01-31 11:23:29 +00:00
2023-07-07 17:25:51 +08:00
2023-07-07 17:25:51 +08:00
2025-10-05 16:02:17 +08:00
2025-09-16 20:11:02 +08:00
2025-12-18 12:14:56 +00:00
2025-10-28 15:29:51 +08:00
2026-04-24 16:51:00 +08:00
2026-04-20 19:27:38 -03:00
2026-04-19 20:28:13 -03:00
2025-05-16 23:49:07 +08:00
2026-01-23 17:05:56 +08:00
2026-01-03 23:06:57 +08:00
2026-04-13 19:45:39 +08:00
2025-08-24 23:18:04 +08:00
2026-03-25 11:26:32 +08:00
2026-03-25 11:26:32 +08:00
2025-04-26 23:11:36 +08:00
2023-08-27 22:44:37 +08:00
2026-04-24 21:39:32 +08:00
2026-04-24 21:39:32 +08:00
2025-12-18 12:14:56 +00:00
2025-10-28 15:30:00 +08:00
2026-04-24 21:39:32 +08:00
2025-05-26 17:41:58 +08:00
2026-03-03 17:36:42 -03:00
2025-10-28 15:29:59 +08:00
2025-10-28 15:29:52 +08:00
2025-09-17 14:17:13 +08:00
2026-01-03 23:06:57 +08:00
2026-01-03 23:06:57 +08:00
2026-03-24 20:50:44 +08:00
2025-10-05 00:05:16 +08:00
2025-10-28 15:29:52 +08:00
2025-09-07 00:17:17 +08:00
2025-09-21 13:48:03 +08:00
2023-12-01 10:42:45 +00:00
2025-12-18 12:14:56 +00:00
2025-10-28 15:29:57 +08:00
2026-04-13 19:45:39 +08:00
2025-09-09 09:39:43 +08:00
2026-03-27 14:53:56 +08:00
2024-04-14 22:07:00 +08:00
2025-03-27 21:56:09 +08:00
2025-03-27 21:56:09 +08:00
2025-11-08 20:44:37 +08:00
2025-09-09 15:40:26 +08:00
2026-04-24 16:29:29 +08:00
2025-07-06 11:34:47 +08:00
2026-04-24 14:19:14 +08:00
2025-10-02 22:56:54 +08:00
2023-12-23 17:44:09 +08:00
2026-03-24 20:44:32 +08:00
2025-12-18 12:14:56 +00:00
2025-10-02 17:07:21 +08:00
2026-04-08 11:32:21 +08:00
2025-09-18 17:13:09 +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-04-13 19:45:39 +08:00
2026-04-13 17:21:05 +08:00
2025-11-09 12:35:32 +08:00
2025-10-28 15:29:57 +08:00
2026-02-27 11:19:22 -03:00
2026-01-26 19:34:14 +08:00
2026-03-24 20:34:32 +08:00
2024-06-15 14:56:44 +08:00
2025-03-29 20:14:10 +08:00
2024-06-15 14:56:44 +08:00
2026-03-03 17:36:42 -03:00
2023-12-09 22:46:18 +08:00
2025-07-17 15:26:55 +08:00
2025-07-17 15:26:55 +08:00
2025-09-21 13:47:51 +08:00
2025-09-18 23:01:47 +08:00
2026-01-09 21:25:48 +08:00
2025-06-04 09:30:36 +08:00
2025-09-30 14:31:54 +08:00
2025-10-01 15:47:44 +08:00
2023-08-30 23:38:33 +08:00
2026-04-24 14:48:59 +08:00
2026-04-24 14:48:59 +08:00
2025-12-18 12:14:56 +00:00
2025-12-18 12:14:56 +00:00
2026-03-24 20:50:44 +08:00
2026-02-23 13:06:07 +08:00
2025-09-30 15:32:44 +08:00
2025-09-28 14:17:52 +08:00
2026-04-16 14:38:26 -03:00
2026-04-16 14:38:26 -03:00
2026-04-08 12:08:35 +08:00
2025-09-17 14:35:02 +08:00
2026-03-24 21:02:37 +08:00
2025-09-17 14:35:02 +08:00
2025-12-18 12:14:56 +00:00
2025-12-18 12:14:56 +00:00
2025-07-17 20:44:45 +08:00
2024-06-15 14:56:44 +08:00
2025-04-20 16:09:31 +08:00
2026-04-25 00:46:48 -04:00
2026-04-09 19:08:57 -04:00
2026-04-25 00:46:48 -04:00
2026-04-25 00:46:48 -04:00
2026-04-13 19:45:39 +08:00
2026-02-10 13:08:22 +08:00
2026-04-13 19:45:39 +08:00
2024-06-15 14:56:44 +08:00
2026-04-13 19:45:39 +08:00
2023-11-04 11:41:06 +08:00
2026-04-13 19:45:39 +08:00
2026-04-13 19:45:39 +08:00
2025-10-31 16:53:08 +08:00
2024-11-12 00:09:15 +08:00
2024-06-15 14:56:44 +08:00
2026-04-13 19:45:39 +08:00
2026-03-24 20:44:32 +08:00
2024-08-12 00:00:20 +08:00
2024-01-31 11:23:29 +00:00
2026-04-24 16:28:28 +08:00
2026-04-24 16:28:28 +08:00
2024-06-15 14:56:44 +08:00
2025-04-04 23:07:00 +08:00
2025-09-24 22:49:14 -04:00
2025-09-24 22:49:14 -04:00
2025-11-17 10:29:44 +08:00
2025-08-22 20:02:26 +08:00
2026-04-24 16:28:28 +08:00
2026-04-24 16:28:28 +08:00
2026-04-13 19:45:39 +08:00
2023-12-23 17:44:09 +08:00
2026-04-24 16:52:25 +08:00
2023-12-23 17:44:09 +08:00
2025-12-18 12:17:29 +00:00
2025-11-15 11:11:20 -05:00
2025-09-24 22:49:14 -04:00
2026-04-06 12:40:36 +08:00
2026-04-06 12:40:36 +08:00
2025-06-14 09:52:33 +08:00
2026-04-25 00:11:23 +08:00
2026-04-24 15:49:36 +08:00
2025-09-07 23:58:51 +08:00
2025-09-07 23:58:51 +08:00
2024-09-07 18:18:35 +08:00
2023-12-01 10:42:45 +00:00
2026-04-15 22:58:12 +08: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
2026-03-24 20:44:32 +08:00
2026-04-13 19:45:39 +08:00
2023-12-09 22:46:18 +08:00
2025-12-23 01:30:03 +08:00
2025-11-17 15:30:35 +00:00
2025-06-01 22:51:13 +08:00
2024-01-31 11:23:29 +00:00
2026-04-21 14:56:22 -04:00
2026-04-21 22:51:31 -04:00
2026-04-13 19:45:39 +08:00
2025-12-18 12:17:29 +00:00
2026-02-25 11:20:57 +00:00
2025-09-21 23:05:43 +08:00
2026-04-13 19:45:39 +08:00
2025-04-13 14:57:08 +08:00
2026-03-22 23:49:23 +08:00
2024-05-22 15:26:52 +08:00
2023-08-09 13:42:41 +08:00
2026-03-09 20:36:36 +08:00
2026-04-13 19:45:39 +08:00
2026-04-13 19:45:39 +08:00
2026-04-24 21:39:32 +08:00
2026-04-24 21:39:32 +08:00
2024-01-31 11:23:29 +00:00
2025-11-09 11:38:45 +08:00
2025-10-02 09:30:48 +08:00
2026-01-23 17:05:56 +08:00
2026-03-11 14:59:29 +08:00
2026-04-13 19:45:39 +08:00
2024-06-15 14:56:44 +08:00
2025-10-28 15:29:56 +08:00
2026-03-05 11:33:07 -03:00
2025-12-14 14:26:16 +01:00
2025-10-28 15:29:56 +08:00
2024-01-31 11:23:29 +00:00
2025-03-29 20:14:10 +08:00
2023-08-27 11:29:46 +08:00
2023-03-12 10:05:22 +08:00
2026-01-03 23:06:57 +08:00
2026-01-03 23:06:57 +08:00
2026-02-27 11:19:22 -03:00
2025-08-24 23:18:24 +08:00
2026-02-04 11:40:02 +00:00
2025-09-21 23:01:08 +08:00
2026-01-03 16:30:14 +08:00
2024-08-12 00:00:20 +08:00
2024-04-28 22:58:47 +08:00
2024-04-28 22:58:47 +08:00
2025-10-02 09:30:48 +08:00
2025-09-25 20:33:50 +08:00
2026-02-04 11:40:02 +00:00
2024-08-12 00:00:20 +08:00
2024-04-28 22:58:47 +08:00
2024-04-28 22:58:47 +08:00
2026-03-05 11:33:07 -03:00
2026-01-23 17:05:56 +08:00
2025-11-17 11:17:54 +08:00
2024-03-22 19:30:13 +08:00
2026-03-15 01:42:28 +03:00
2026-03-15 01:42:28 +03:00
2026-04-23 10:34:36 -03:00
2026-04-24 16:28:28 +08:00
2025-12-18 12:14:56 +00:00
2025-12-18 12:14:56 +00:00
2026-04-08 15:06:28 -03:00
2025-09-21 13:48:01 +08:00
2026-04-15 22:36:25 +08:00
2026-04-15 22:36:25 +08:00
2026-04-14 09:17:23 -04:00
2024-01-01 10:58:22 -05:00
2026-04-13 19:45:39 +08:00
2026-03-24 20:39:45 +08:00
2026-02-23 13:06:07 +08:00
2025-08-26 20:40:48 +08:00
2024-09-09 22:42:27 +08:00
2024-09-09 22:42:27 +08:00
2026-02-04 11:40:02 +00:00
2025-12-18 12:17:29 +00:00
2026-04-25 00:32:42 -04:00
2026-04-21 14:56:22 -04:00
2025-09-26 10:55:19 +08:00
2026-03-24 20:50:44 +08:00
2025-09-26 14:35:06 +08:00
2026-04-24 16:28:28 +08:00
2026-01-23 17:05:56 +08:00
2026-04-25 05:07:34 -04:00
2026-04-25 00:46:48 -04:00
2026-03-24 20:50:44 +08:00
2025-09-23 16:50:33 +08:00
2026-04-24 16:51:00 +08:00
2026-03-16 15:06:14 +08:00
2025-11-18 09:17:13 +08:00
2025-10-28 15:30:02 +08:00
2026-04-24 16:28:28 +08:00
2025-09-28 14:19:02 +08:00
2026-03-09 20:36:36 +08:00
2024-03-23 10:08:48 +08:00
2024-03-23 10:08:48 +08:00
2026-04-13 14:07:40 +08:00
2025-04-01 22:38:38 +08:00
2026-02-08 17:00:52 +08:00
2025-02-18 23:08:34 +08:00
2026-04-06 12:40:36 +08:00
2026-04-06 12:40:36 +08:00
2025-12-18 12:14:56 +00:00
2025-12-18 12:14:56 +00:00
2025-06-01 18:35:48 +08:00
2024-07-23 18:00:21 +08:00
2024-06-29 22:13:57 +08:00
2023-01-10 19:08:26 +08:00
2026-03-03 17:36:42 -03:00
2025-11-17 10:29:44 +08:00
2025-07-13 20:10:42 +08:00
2025-12-18 12:14:56 +00:00
2025-12-18 12:14:56 +00:00
2026-02-11 16:00:04 +08:00
2026-02-11 16:00:04 +08:00
2025-01-07 23:25:32 +08:00
2026-03-03 17:36:42 -03:00
2025-10-28 15:29:54 +08:00
2026-02-06 23:02:48 +08:00
2026-02-06 23:02:48 +08:00
2025-10-14 08:56:18 +08:00
2025-10-14 08:56:18 +08:00
2026-04-13 19:45:39 +08:00
2025-09-17 23:17:08 +08:00
2026-04-18 07:42:54 +01:00
2026-04-15 22:36:25 +08:00
2026-04-06 12:40:36 +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-03-25 11:33:50 +08:00
2026-01-23 17:05:56 +08:00
2026-04-13 19:45:39 +08:00
2026-03-30 14:51:45 +08:00
2026-01-03 23:06:57 +08:00
2025-06-14 10:27:10 +08:00
2025-06-14 10:27:10 +08:00
2026-04-13 19:45:39 +08:00
2025-09-26 14:35:06 +08:00
2025-08-24 23:18:24 +08:00
2023-02-22 20:09:17 +08:00
2024-09-26 16:22:15 +08:00
2023-12-01 10:42:45 +00:00
2026-03-24 20:50:44 +08:00
2025-11-03 20:36:47 +08:00
2026-02-10 11:44:30 -03:00
2025-06-14 10:27:10 +08:00
2025-02-26 23:07:23 +08:00
2024-02-13 23:56:48 +08:00
2026-03-25 11:30:21 +08:00
2025-10-08 18:03:20 +08:00
2026-03-24 20:50:44 +08:00
2026-04-25 00:46:48 -04:00
2026-04-09 19:08:57 -04:00
2026-02-04 11:40:02 +00:00
2025-12-14 14:26:16 +01:00
2026-03-25 15:58:39 +08:00
2025-09-16 21:21:40 +08:00
2026-01-23 17:05:56 +08:00
2026-01-23 17:05:56 +08:00
2026-04-13 19:45:39 +08:00
2023-12-09 22:46:18 +08:00
2025-10-28 15:30:06 +08:00
2025-10-28 15:30:06 +08:00
2023-11-04 11:41:00 +08:00
2023-11-04 11:41:00 +08:00
2026-03-16 14:53:51 +08:00
2025-11-19 13:51:52 +03:00
2025-12-18 12:14:56 +00:00
2026-03-27 14:53:56 +08:00
2025-10-28 15:30:00 +08:00
2025-10-02 09:30:48 +08:00
2024-04-28 22:58:47 +08:00
2024-04-28 22:58:47 +08:00
2024-04-28 22:58:47 +08:00
2025-10-28 15:29:56 +08:00
2026-04-24 13:54:09 +08:00
2026-04-24 13:54:09 +08:00
2026-01-28 19:04:56 +08:00
2026-01-23 17:05:56 +08:00
2026-02-06 09:18:52 +08:00
2024-05-25 09:11:19 +08:00
2026-03-30 14:51:45 +08:00
2025-10-28 15:29:58 +08:00
2026-04-14 22:48:38 +08:00
2025-09-28 15:01:11 +08:00
2026-03-24 20:44:32 +08:00
2026-03-09 20:52:12 +08:00
2026-03-27 14:32:40 +08:00
2025-05-26 14:43:32 +08:00