OnUndoRedoPerformed() public method

public OnUndoRedoPerformed ( ) : void
return void
Example #1
0
        public void UndoRedoPerformed()
        {
            if (m_Controller == null)
            {
                return;
            }

            // Undo may have deleted one of the selected groups
            m_Controller.OnSubAssetChanged();
            m_Controller.SanitizeGroupViews();
            m_Controller.OnUnitySelectionChanged();

            if (m_GroupTree != null)
            {
                m_GroupTree.OnUndoRedoPerformed();
            }

            if (m_GroupViews != null)
            {
                m_GroupViews.OnUndoRedoPerformed();
            }

            if (m_SnapshotListView != null)
            {
                m_SnapshotListView.OnUndoRedoPerformed();
            }

            if (m_MixersTree != null)
            {
                m_MixersTree.OnUndoRedoPerformed();
            }

            AudioMixerUtility.RepaintAudioMixerAndInspectors();
        }