Fix: Save original keyData before modification in createKeyVisual

This commit is contained in:
Z. Cliffe Schreuders
2025-10-27 16:11:45 +00:00
parent b20d159ffc
commit b224f4043d

View File

@@ -22,6 +22,9 @@ export class KeyVisualFeedback {
// Create a visual representation of a key for the selection UI by building the actual key and scaling it down
const keyContainer = this.parent.scene.add.container(0, 0);
// Save the original key data before temporarily changing it
const originalKeyData = this.parent.keyData;
// Temporarily set the key data to create the key
this.parent.keyOps.createKey();