On 12/05/2013 at 12:32, xxxxxxxx wrote:
User Information:
Cinema 4D Version: r14
Platform:
Language(s) : C++ ;
---------
Hi, I am facing a problem which I dont understand..
this is my code to get a linked object:
ipCustomObject = bc->GetLink(IP_CUSTOM_OBJECT,doc);
if (!ipCustomObject) return FALSE;
...
I was thinking that this prevents further problems when the linked object is removed by the user, but it doesnt. Can anyone point out whats wrong?
later on in the code i use the linked object to create an instance. everything works well until the user deletes the object.
innerPillar = BaseObject::Alloc(Oinstance);
innerPillar->SetParameter(DescID(INSTANCEOBJECT_LINK),GeData(ipCustomObject),DESCFLAGS_SET_0);
innerPillar->InsertUnder(main);
cheers,
Ello