![]() |
#1 |
Senior Member
Professional user
Join Date: Jul 2003
Posts: 899
|
![]()
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 |
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
![]() |
|
|