Loss of undo stack after switching to 2D drawing mode

Version 5.411.0 (5417)

MacOS Ventura 13.4 (22F66)

Steps to reproduce:

  1. Open a model with a body in it
  2. Move the body (this is a sample action we will attempt to undo)
  3. Create a 2D drawing of the body
  4. Return to 3D modelling mode
  5. Press CMD+Z
  6. Observe that the body movement is not undone