private void QueueEdit(VoxelEdit <TIndexer> edit)
        {
            if (edits.Count >= QueueSize)
            {
                RemoveEdit(edits[0]);
            }

            edits.Add(edit);

            //Remove all undone edits because they cannot be redone anymore
            wasPreviousUndo = true;
            foreach (VoxelEdit <TIndexer> undoneEdit in undone)
            {
                undoneEdit.Dispose();
            }
            undone.Clear();
        }
 private void RemoveEdit(VoxelEdit <TIndexer> edit)
 {
     edits.Remove(edit);
     edit.Dispose();
 }