fix linux build error
Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
namespace ScriptCanvasEditor
|
||||
{
|
||||
ScriptCanvasMemoryAsset::ScriptCanvasMemoryAsset()
|
||||
: m_isSaving(false)
|
||||
, m_sourceInError(false)
|
||||
: m_sourceInError(false)
|
||||
{
|
||||
m_undoState = AZStd::make_unique<SceneUndoState>(this);
|
||||
}
|
||||
|
||||
@@ -321,7 +321,6 @@ namespace ScriptCanvasEditor
|
||||
//! The undo helper is an object that implements the Undo behaviors
|
||||
AZStd::unique_ptr<UndoHelper> m_undoHelper;
|
||||
|
||||
bool m_isSaving;
|
||||
bool m_sourceInError;
|
||||
|
||||
AZ::Data::AssetId m_sourceUuid;
|
||||
|
||||
@@ -69,28 +69,15 @@ namespace ScriptCanvasEditor
|
||||
void CanvasWidget::ShowScene(const ScriptCanvas::ScriptCanvasId& scriptCanvasId)
|
||||
{
|
||||
EditorGraphRequests* editorGraphRequests = EditorGraphRequestBus::FindFirstHandler(scriptCanvasId);
|
||||
|
||||
// #sc-editor-asset check if needed: editorGraphRequests->SetAssetId(m_assetId);
|
||||
|
||||
editorGraphRequests->CreateGraphCanvasScene();
|
||||
|
||||
AZ::EntityId graphCanvasSceneId = editorGraphRequests->GetGraphCanvasGraphId();
|
||||
|
||||
m_graphicsView->SetScene(graphCanvasSceneId);
|
||||
|
||||
m_scriptCanvasId = scriptCanvasId;
|
||||
}
|
||||
|
||||
void CanvasWidget::SetAssetId(const ScriptCanvasEditor::SourceHandle& assetId)
|
||||
{
|
||||
m_assetId = assetId;
|
||||
// #sc-editor-asset check if needed:
|
||||
/*
|
||||
if (EditorGraphRequests* editorGraphRequests = EditorGraphRequestBus::FindFirstHandler(m_scriptCanvasId))
|
||||
{
|
||||
editorGraphRequests->SetAssetId(m_assetId);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
const GraphCanvas::ViewId& CanvasWidget::GetViewId() const
|
||||
|
||||
Reference in New Issue
Block a user