Drawing mode has its own local undo (1) redo (2) stack which is reset after leaving the drawing mode.