On 25/07/2013 at 00:34, xxxxxxxx wrote:
Cinema 4D Version: R13
Platform: Windows ;
Language(s) : C++ ;
I try to save a c4d project using
SaveDocument(pDoc, fnProjectFile, SAVEDOCUMENTFLAGS_SAVECACHES, FORMAT_C4DEXPORT);
The project is saved, but the problem is that after calling SaveDocument(...) Cinema still sees the project as modified(in the GUI you will see the name of the project with * after) and if I try to close Cinema4D every time I get the question if I want to save the project or not.
How can I modify the flag for modified project, so I don't have this situation anymore?
On 25/07/2013 at 03:36, xxxxxxxx wrote:
On 25/07/2013 at 04:09, xxxxxxxx wrote:
Thanks for the tip.
I tested and it's not working.
On 25/07/2013 at 07:40, xxxxxxxx wrote:
According to the SDK documentation, adding this flag:
"Sets the Autosave mode. Files are not added to the recent file list and the document change star will not be reset."
Have you tried it without SAVEDOCUMENTFLAGS_SAVECACHES to see if that flag is erroneously interfering with this flag? Of course, if the document has not been saved at all, it may invoke the change star. You may want to try it with the
SAVEDOCUMENTFLAGS_DONTADDTORECENTLISTas well and see if that changes the situation. The C4D SDK is not bad but it can be a bit temperamental.