Files
OrcaSlicer/src/slic3r/GUI
Ian BassiandRodrigo Faselli dee9c0d72c Add extrusion role change G-code in Process and Filament (#11784)
* Add extrusion role change G-code options

Introduces new G-code options for handling extrusion role changes at the process and filament levels. Updates configuration, GUI, and GCode logic to support 'process_change_extrusion_role_gcode' and 'filament_change_extrusion_role_gcode', allowing custom G-code insertion when the extrusion role changes.

Co-Authored-By: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>

* Optimize extrusion role-change gcode handling

Cache gcode template strings and current filament id, and guard creation of DynamicConfig/placeholder processing behind a check that at least one role-change gcode is non-empty. This avoids redundant config lookups and DynamicConfig/placeholder parsing when no custom role-change gcode is defined, improving clarity and performance without changing behavior.

---------

Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
2026-04-24 14:25:04 +08: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-04-20 19:27:38 -03:00
2026-01-23 17:05:56 +08:00
2026-01-03 23:06:57 +08:00
2026-04-17 10:42:39 -03: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
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
2026-04-20 19:27:38 -03:00
2026-04-20 19:27:38 -03: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-01-31 01:04:27 +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