// FindSelectedGroups(): // Adds groups id they are selected, and adds parent groups of selected items. void SelectOMatic_Item::FindSelectedGroups( DynArray< SelectOMatic_Item * > &array ) { if( id == SOM_GROUP ) { if( is_selected ) { if( array.FindIndexOf( this ) == DA_NO_MATCH ) array.Add( this ); } for( unsigned long i=0; i < children.NumElements(); i++ ) children[i]->FindSelectedGroups( array ); } else { if( is_selected ) { if( array.FindIndexOf( parent ) == DA_NO_MATCH ) array.Add( parent ); } } }
// SimplifyDestroy() XCALL_ (void) SimplifyDestroy( LWInstance inst ) { instances.Remove( instances.FindIndexOf( (SimplifyInstance *)inst ) ); delete inst; }
// ParticleCloud_Destroy(): void ParticleCloud_Destroy( LWInstance _inst ) { ParticleCloud_Instance *inst = (ParticleCloud_Instance *)_inst; instances.Remove( instances.FindIndexOf( inst ) ); delete inst; }