clean up WIP

Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
chcurran
2021-12-02 00:25:50 -08:00
parent a9b1b02b92
commit 5da820a8c2
8 changed files with 154 additions and 151 deletions
@@ -405,18 +405,17 @@ namespace ScriptCanvasEditor
{
sourceIndex = proxyModel->mapToSource(modelIndex);
}
// #sc_editor_asset
// PivotTreeItem* pivotTreeItem = static_cast<PivotTreeItem*>(sourceIndex.internalPointer());
//
// if (pivotTreeItem)
// {
// PivotTreeGraphItem* graphItem = azrtti_cast<PivotTreeGraphItem*>(pivotTreeItem);
//
// if (graphItem)
// {
// GeneralRequestBus::Broadcast(&GeneralRequests::OpenScriptCanvasAssetId, graphItem->GetAssetId());
// }
// }
if (PivotTreeItem* pivotTreeItem = static_cast<PivotTreeItem*>(sourceIndex.internalPointer()))
{
if (PivotTreeGraphItem* graphItem = azrtti_cast<PivotTreeGraphItem*>(pivotTreeItem))
{
GeneralRequestBus::Broadcast
( &GeneralRequests::OpenScriptCanvasAssetId
, SourceHandle(nullptr, graphItem->GetAssetId().m_guid, "")
, Tracker::ScriptCanvasFileState::UNMODIFIED);
}
}
}
#include <Editor/View/Widgets/LoggingPanel/PivotTree/moc_PivotTreeWidget.cpp>