4th June 2006, 11:09 PM | #1 |
Senior Member
Professional user
Join Date: Jul 2003
Posts: 899
|
object_delete() on groups
Hi Andy/all,
If I perform this on a group object: object_delete( mygroup ); where mygroup contains other objects, does this perform cleanup on child objects as well? Also, if I use add_undoable_world_add_object() to add the group, is cleanup also performed appropriately? Thanks in advance, Dennis |
5th June 2006, 01:06 PM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Yes - it will delete+free the object and all of it's children.
Watch out though - it will also cleanup a parent if mygroup is the only child. To be safe, you can use object_delete_nocleanup - which will leave the parent safe. Andy |
Thread Tools | |
Display Modes | |
|
|