THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/11/2008 at 21:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R9-11
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Here is the situation: I have two objects that have a hierarchical relationship:
Mother
--Son
When one is deleted the other must be deleted as well (these objects are working as a group!) - and there should be undos. When Mother is deleted, there is nothing needed to be done - the undo is stored by Cinema 4D and voila, both Mother and Son are added to the undo stack and restored on an Undo action.
But... when the Son is deleted, what? I can delete Mother in the ObjectData::Free() of Son but if I add an undo for Mother, instant crash during an Undo action (looks to be a conflict or recursion). If I don't add an undo, then nothing is undone (because Mother is not in the undo-stack).
Work that one out...