THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/10/2005 at 04:59, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.1
Platform:
Language(s) : C++ ;
---------
Hi,
I need a way to remove all the children of a BaseObject
This is what I currently have
void RemoveChildObjects(BaseObject* op)
{
BaseObject *child = op->GetDown();
while(child)
{
child->Remove();
BaseObject::Free(child);
child=child->GetNext();
}
}
But that doesn't work because child becomes NULL after the first BaseObject::Free