Skip to content

Happy Hare TTG dialog should fall back to filament_colors when extruder_colors is empty #2610

Description

@juliusjj25

Requested feature:

When using PrusaSlicer with Happy Hare, the Edit TTG Map dialog can incorrectly report a color mismatch.

PrusaSlicer uses an undefined extruder color to mean “use the selected filament color.” The resulting G-code contains:

; extruder_colour = ;;;;;
; filament_colour = #101820;#00FF59;#FFE800;#AF231C;#080A0D;#090036

Moonraker correctly exposes this as an empty extruder_colors array and a populated filament_colors array.

For PrusaSlicer files, MmuEditTtgMapDialogDetails.vue currently reads extruder_colors. Because the array is empty, the UI displays the default gray color and reports a mismatch even though filament_colors contains the correct color.

Steps to reproduce:

In PrusaSlicer, leave Printer Settings → Extruder Color set to . (Reset to Filament Color)

Select a filament preset with a defined filament color.

Slice and upload the G-code.

Open Happy Hare’s Edit TTG Map dialog.

The slicer color is shown as gray and a color mismatch is reported.

Expected behavior:

For each tool, use its explicit extruder_colors value when populated. If it is missing or empty, fall back to the corresponding filament_colors value.

Environment:

PrusaSlicer 2.9.5+BOSS

HappyHare: v3.4.2-22

Spoolman integration

Mainsail v2.16.1

Solves the following problem:

No response

Additional information:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions