Fixed the application of translation overrides to free standing BehaviorProperty constants

Signed-off-by: lsemp3d <58790905+lsemp3d@users.noreply.github.com>
This commit is contained in:
lsemp3d
2021-11-12 15:45:55 -08:00
parent 4fac65b600
commit 5072c2667f
11 changed files with 155 additions and 26 deletions
@@ -764,7 +764,7 @@ namespace ScriptCanvasEditorTools
Entry entry;
TranslateBehaviorProperty(behaviorProperty, "", "Constant", &entry);
TranslateBehaviorProperty(behaviorProperty, propertyName, "Constant", &entry);
TranslationFormat translationRoot;
translationRoot.m_entries.push_back(entry);
@@ -830,6 +830,9 @@ namespace ScriptCanvasEditorTools
if (!entry)
{
entry = &localEntry;
}
else if (entry->m_key.empty())
{
entry->m_key = className;
entry->m_context = context;
}