version upgrader in a presumed working story
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -1069,7 +1069,7 @@ namespace ScriptCanvasEditor
|
||||
m_owner = &owner;
|
||||
}
|
||||
|
||||
ScriptCanvas::ScriptCanvasData* Graph::GetOwnership() const
|
||||
ScriptCanvas::DataPtr Graph::GetOwnership() const
|
||||
{
|
||||
return const_cast<Graph*>(this)->m_owner;
|
||||
}
|
||||
@@ -1354,7 +1354,7 @@ namespace ScriptCanvasEditor
|
||||
|
||||
void Graph::SignalDirty()
|
||||
{
|
||||
SourceHandle handle(m_owner->shared_from_this(), {}, {});
|
||||
SourceHandle handle(m_owner, {}, {});
|
||||
GeneralRequestBus::Broadcast(&GeneralRequests::SignalSceneDirty, handle);
|
||||
}
|
||||
|
||||
|
||||
@@ -438,10 +438,11 @@ namespace ScriptCanvasEditor
|
||||
if (nodeConfig.IsValid())
|
||||
{
|
||||
ScriptCanvas::NodeUpdateSlotReport nodeUpdateSlotReport;
|
||||
auto nodeEntity = node->GetEntityId();
|
||||
auto nodeOutcome = graph->ReplaceNodeByConfig(node, nodeConfig, nodeUpdateSlotReport);
|
||||
if (nodeOutcome.IsSuccess())
|
||||
{
|
||||
ScriptCanvas::MergeUpdateSlotReport(node->GetEntityId(), sm->m_updateReport, nodeUpdateSlotReport);
|
||||
ScriptCanvas::MergeUpdateSlotReport(nodeEntity, sm->m_updateReport, nodeUpdateSlotReport);
|
||||
|
||||
sm->m_allNodes.erase(node);
|
||||
sm->m_outOfDateNodes.erase(node);
|
||||
@@ -687,7 +688,8 @@ namespace ScriptCanvasEditor
|
||||
void EditorGraphUpgradeMachine::OnComplete(IState::ExitStatus exitStatus)
|
||||
{
|
||||
UpgradeNotificationsBus::Broadcast(&UpgradeNotifications::OnGraphUpgradeComplete, m_asset, exitStatus == IState::ExitStatus::Skipped);
|
||||
m_asset = {};
|
||||
// releasing the asset at this stage of the system tick causes a memory crash
|
||||
// m_asset = {};
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user