small fixes for SC play in editor and warnings

Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
carlitosan
2021-12-08 22:54:21 -08:00
parent 0963bc0cc5
commit 9830925309
5 changed files with 36 additions and 17 deletions
@@ -85,6 +85,18 @@ namespace ScriptCanvas
}
}
if (componentElementNode.GetVersion() < GraphCpp::GraphVersion::FixupVersionDataTypeId)
{
if (auto subElement = componentElementNode.FindSubElement(AZ_CRC_CE("versionData")))
{
if (subElement->GetId() == azrtti_typeid<SlotId>())
{
componentElementNode.RemoveElementByName(AZ_CRC_CE("versionData"));
componentElementNode.AddElementWithData(context, "versionData", VersionData());
}
}
}
return true;
}