bool Remove( plCommonObjLib *lib ) { int idx = fLibs.Find( lib ); if( idx != fLibs.kMissingIndex ) fLibs.Remove( idx ); else { hsAssert( false, "Common Object Lib not found in list upon deletion. Are you misusing this class? Tsk tsk!" ); } fRefCount--; return ( fRefCount == 0 ) ? true : false; }
static void ISearchLayerRecur( plLayerInterface *layer, const ST::string &segName, hsTArray<plKey>& keys ) { if( !layer ) return; plLayerAnimation *animLayer = plLayerAnimation::ConvertNoRef(layer); if (animLayer) { ST::string ID = animLayer->GetSegmentID(); if (!ID.compare(segName)) { if( keys.kMissingIndex == keys.Find(animLayer->GetKey()) ) keys.Append(animLayer->GetKey()); } } ISearchLayerRecur(layer->GetAttached(), segName, keys); }