On 12/09/2016 at 01:09, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R18
Platform: Windows ;
Language(s) : C++ ;
---------
Hello.
Here is how I copy general settings from Active Document to a cloned one.
BaseDocument* cloned_document = BaseDocument::Alloc();
BaseContainer data = GetActiveDocument->GetData(DOCUMENTSETTINGS_GENERAL);
cloned_document->SetData(DOCUMENTSETTINGS_GENERAL,data);
Nevertheless, whenever I load one of my projects in R18, a breakpoint is triggered in SetData in the very first execution of this code. I use this code inside InitGLImage method of a MaterialData plugin.
What causes this breakpoint ?
Thank you for your time.