Пример #1
0
        /// <inheritdoc />
        public override void ValidateAfterDeserialize()
        {
            base.ValidateAfterDeserialize();

            if (!m_CurrentGraph.IsValid())
            {
                m_CurrentGraph = new OpenedGraph(null, null);
            }
        }
Пример #2
0
        /// <inheritdoc />
        public override void ValidateAfterDeserialize()
        {
            base.ValidateAfterDeserialize();

            // Check that all referenced graphs still exist (assets may have been deleted).
            if (!m_CurrentGraph.IsValid())
            {
                m_CurrentGraph = new OpenedGraph(null, null);
            }

            if (!m_LastOpenedGraph.IsValid())
            {
                m_LastOpenedGraph = new OpenedGraph(null, null);
            }

            for (var i = 0; i < m_SubGraphStack.Count; i++)
            {
                if (!m_SubGraphStack[i].IsValid())
                {
                    m_SubGraphStack[i] = new OpenedGraph(null, null);
                }
            }
        }