SC Editor serialization update in JSON

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
chcurran
2021-11-22 16:04:49 -08:00
parent 1c9c268231
commit 205b2c27ee
15 changed files with 187 additions and 58 deletions
@@ -118,7 +118,7 @@ namespace ScriptCanvasEditor
SourceHandle Modifier::LoadAsset()
{
auto& handle = ModCurrentAsset();
if (!handle.IsValid())
if (!handle.IsGraphValid())
{
auto outcome = LoadFromFile(handle.Path().c_str());
if (outcome.IsSuccess())
@@ -158,7 +158,7 @@ namespace ScriptCanvasEditor
ModelNotificationsBus::Broadcast(&ModelNotificationsTraits::OnUpgradeModificationBegin, m_config, ModCurrentAsset());
if (auto asset = LoadAsset(); asset.IsValid())
if (auto asset = LoadAsset(); asset.IsGraphValid())
{
ModificationNotificationsBus::Handler::BusConnect();
m_modifyState = ModifyState::InProgress;
@@ -132,7 +132,7 @@ namespace ScriptCanvasEditor
}
else
{
if (auto asset = LoadAsset(); asset.IsValid())
if (auto asset = LoadAsset(); asset.IsGraphValid())
{
VE_LOG("Scanner: Loaded: %s ", ModCurrentAsset().Path().c_str());
FilterAsset(asset);