Example #1
0
        private void DeselectTrack(FTrackEditor trackEditor)
        {
            if (trackEditor == null || !trackEditor.IsSelected())
            {
                return;
            }

            Undo.RegisterCompleteObjectUndo(new Object[] { trackEditor, this }, "deselect Track");

            _selectedTracks.Remove(trackEditor);
            trackEditor.OnDeselect();
        }
Example #2
0
        private void SelectTrack(FTrackEditor trackEditor)
        {
            if (trackEditor == null || trackEditor.IsSelected())
            {
                return;
            }

            Undo.RegisterCompleteObjectUndo(new Object[] { trackEditor, this }, "select Track");

            _selectedTracks.Add(trackEditor);
            trackEditor.OnSelect();

            FInspectorWindow.SetTracks(_selectedTracks);
        }