Go Back   AC3D Forums > Technical > AC3D Developers
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 4th June 2006, 11:09 PM   #1
Dennis
Senior Member
Professional user
 
Dennis's Avatar
 
Join Date: Jul 2003
Posts: 899
Default 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
Dennis is offline   Reply With Quote
Old 5th June 2006, 01:06 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,451
Default

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
Andy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 08:53 PM.


AC3D Forum
(C) Inivis Limited 2020