Discard the render database when stopping the rendered preview, otherwise starting it again may cause a segmentation fault because undo/redo with non-rendered preview corrupts the database.
Discard the render database when stopping the rendered preview, otherwise starting it again may cause a segmentation fault because undo/redo with non-rendered preview corrupts the database.