예제 #1
0
        /// <summary>
        /// Add a frame data collection to the undo buffer
        /// </summary>        
        public static void Add(ref UndoBuffer buffer, ref TASMovieInput[] change)
        {
            TASMovieInput[][] temp = new TASMovieInput[buffer.Changes.Length + 1][];

            if (buffer.Changes.Length > 0) buffer.Changes.CopyTo(temp, 0);

            temp[temp.Length - 1] = new TASMovieInput[change.Length];
            change.CopyTo(temp[temp.Length - 1], 0);

            buffer.Changes = temp;
        }