THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/11/2005 at 10:30, xxxxxxxx wrote:
Cinema 4D Version: 9.5
Platform: Mac ; Mac OSX ;
Language(s) : C++ ;
I don't understand why GetClone() crashes by simply replacing the flag COPY_NO_ANIMATION with COPY_NO_BRANCHES. I also tried just adding COPY_NO_BRANCHES to the flags and leaving COPY_NO_ANIMATION in there and it still crashed.
Here is the code snippet:
BaseObject* destObject = NULL; destObject =(BaseObject* )op->GetClone(COPY_NO_HIERARCHY|COPY_NO_ANIMATION|COPY_NO_BITS,NULL); if (! destObject) goto Error;
The above code works fine, but I don't want the object's tags to be copied to the new object.
The SDK doc says for COPY_NO_BRANCHES:
Don't copy branches, for example tags on an object. Automatically implies COPY_NO_ANIMATION, as animation is a branch.
From the SDK doc, I would assume all I have to do is use the COPY_NO_BRANCHES, but that causes Cinema to crash.
How am I supposed to set it up to not copy the tags to the cloned object?