From d5d67e988b70c9c4a7bfd729d7cbf2525d76e67e Mon Sep 17 00:00:00 2001 From: Ross Andrews Date: Sun, 17 May 2026 17:56:27 -0500 Subject: [PATCH] Reset glyph to archetype default when selection changes Selecting a different archetype in the editor now updates the active glyph to that archetype's default_glyph(), keeping the visual preview in sync with the selected behavior type. Co-Authored-By: Claude Sonnet 4.6 --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 47703e8..52f32a5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -175,11 +175,13 @@ impl eframe::App for App { } if cell_resp.clicked() { self.editor.selected = archetype; + self.editor.glyph = archetype.default_glyph(); } if ui.selectable_label(is_selected, archetype.name()) .clicked() { self.editor.selected = archetype; + self.editor.glyph = archetype.default_glyph(); } }); }