add file state for graphs
Signed-off-by: chcurran <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
@@ -360,6 +360,7 @@ namespace ScriptCanvasEditor
|
||||
namespace ScriptCanvas
|
||||
{
|
||||
class ScriptCanvasData
|
||||
: public AZStd::enable_shared_from_this<ScriptCanvasData>
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
@@ -1190,11 +1190,6 @@ namespace ScriptCanvas
|
||||
m_isObserved = isObserved;
|
||||
}
|
||||
|
||||
AZ::Data::AssetType Graph::GetAssetType() const
|
||||
{
|
||||
return m_assetType;
|
||||
}
|
||||
|
||||
void Graph::VersioningRemoveSlot(ScriptCanvas::Node& scriptCanvasNode, const SlotId& slotId)
|
||||
{
|
||||
bool deletedSlot = true;
|
||||
|
||||
@@ -187,8 +187,6 @@ namespace ScriptCanvas
|
||||
|
||||
bool IsGraphObserved() const override;
|
||||
void SetIsGraphObserved(bool isObserved) override;
|
||||
|
||||
AZ::Data::AssetType GetAssetType() const override;
|
||||
////
|
||||
|
||||
const AZStd::unordered_map<AZ::EntityId, Node* >& GetNodeMapping() const { return m_nodeMapping; }
|
||||
@@ -198,7 +196,7 @@ namespace ScriptCanvas
|
||||
|
||||
GraphData m_graphData;
|
||||
AZ::Data::AssetType m_assetType;
|
||||
|
||||
|
||||
private:
|
||||
ScriptCanvasId m_scriptCanvasId;
|
||||
ExecutionMode m_executionMode = ExecutionMode::Interpreted;
|
||||
|
||||
@@ -147,9 +147,6 @@ namespace ScriptCanvas
|
||||
//! returns a pair of <variable datum pointer, variable name> with the supplied id
|
||||
//! The variable datum pointer is non-null if the variable has been found
|
||||
virtual GraphVariable* FindVariableById(const VariableId& variableId) = 0;
|
||||
|
||||
virtual AZ::Data::AssetType GetAssetType() const = 0;
|
||||
|
||||
};
|
||||
using GraphRequestBus = AZ::EBus<GraphRequests>;
|
||||
|
||||
|
||||
@@ -493,14 +493,6 @@ namespace ScriptCanvas
|
||||
return m_sortPriority;
|
||||
}
|
||||
|
||||
bool GraphVariable::IsInFunction() const
|
||||
{
|
||||
AZ::Data::AssetType assetType = AZ::Data::AssetType::CreateNull();
|
||||
ScriptCanvas::GraphRequestBus::EventResult(assetType, m_scriptCanvasId, &ScriptCanvas::GraphRequests::GetAssetType);
|
||||
|
||||
return assetType == azrtti_typeid<ScriptCanvas::SubgraphInterfaceAsset>();
|
||||
}
|
||||
|
||||
AZ::u32 GraphVariable::OnInitialValueSourceChanged()
|
||||
{
|
||||
VariableNotificationBus::Event(GetGraphScopedId(), &VariableNotifications::OnVariableInitialValueSourceChanged);
|
||||
|
||||
@@ -194,9 +194,7 @@ namespace ScriptCanvas
|
||||
choices.emplace_back(AZStd::make_pair(static_cast<unsigned char>(VariableFlags::Scope::Function), s_ScopeNames[1]));
|
||||
return choices;
|
||||
}
|
||||
|
||||
bool IsInFunction() const;
|
||||
|
||||
|
||||
void OnScopeTypedChanged();
|
||||
AZ::u32 OnInitialValueSourceChanged();
|
||||
void OnSortPriorityChanged();
|
||||
|
||||
Reference in New Issue
Block a user