From a0c89352608bb7ee34d662c59ebd470606f1db0a Mon Sep 17 00:00:00 2001 From: jyelon Date: Sun, 15 Feb 2026 07:28:36 -0500 Subject: [PATCH] Fix some issues with blueprint exporter --- CLAUDE.md | 4 ++++ Content/Tangibles/TAN_Character.uasset | 2 +- Source/Integration/BlueprintExporter.cpp | 15 +++++++++------ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index ce9a5c97..0f91e0a6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -105,6 +105,10 @@ Blueprints are automatically exported to readable text files in `Saved/Blueprint - `Docs/Difference Transmission with Threads.md` — why concurrent diff transmission is hard - `Docs/Blueprint Text Export.md` — how blueprints are auto-exported to readable text +## Git + +Do not use git to make changes (commit, push, branch, etc.). Read-only git commands (status, log, diff, etc.) are fine. + ## Coding Conventions - Do not use static functions in Unreal code. Use class methods or namespace-scoped functions instead. diff --git a/Content/Tangibles/TAN_Character.uasset b/Content/Tangibles/TAN_Character.uasset index 1cad8bcb..89dfc322 100644 --- a/Content/Tangibles/TAN_Character.uasset +++ b/Content/Tangibles/TAN_Character.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:109529853d78ad22a2f151ff3f6c1df3f8150e7f7a281c778ca0f3f79328e7ef +oid sha256:c1aba9d4990235d635136e3591c579bb1b5f640104b33d9b0fe00a96b518e4ac size 353527 diff --git a/Source/Integration/BlueprintExporter.cpp b/Source/Integration/BlueprintExporter.cpp index 40cc8924..7754ab46 100644 --- a/Source/Integration/BlueprintExporter.cpp +++ b/Source/Integration/BlueprintExporter.cpp @@ -317,16 +317,19 @@ FString FlxBlueprintExporter::SanitizeName(const FString& Title) bool PrevWasUnderscore = true; // suppress leading underscore for (TCHAR Ch : Title) { - if (FChar::IsAlnum(Ch)) + if (FChar::IsWhitespace(Ch)) + { + if (!PrevWasUnderscore) + { + Result += TEXT('_'); + PrevWasUnderscore = true; + } + } + else { Result += Ch; PrevWasUnderscore = false; } - else if (!PrevWasUnderscore) - { - Result += TEXT('_'); - PrevWasUnderscore = true; - } } // Trim trailing underscore if (Result.Len() > 0 && Result[Result.Len() - 1] == TEXT('_'))