Calling doc->GetDocumentPath() from a scene saver invoked by SaveDocument() is now consistent with the GUI behavior of the export. doc->GetDocumentPath() now always returns the current path of the document instead of the target path of the file to save for all formats (except Cinema 4D (*.c4d) and Cinema 4D XML (*.xml)).
A new document data DOCUMENT_SAVEDOC_DESTINATIONPATH (only set when saving) can be accessed in scene savers to get the destination path of the exported file.