private void StoreUndoState()
{
lock (m_undo)
{
if (m_undo.Count > 0)
{
VoxelUndoState last = m_undo.Peek();
if (last != null)
{
if (last.Compare(m_channel))
return;
}
}
VoxelUndoState nUndo = new VoxelUndoState(this, m_channel);
m_undo.Push(nUndo);
}
}