int CEditableObject::GetSelectedBones(BoneVec& sel_bones) { BoneVec& lst = m_Bones; for(BoneIt b_it=lst.begin(); b_it!=lst.end(); b_it++) if ((*b_it)->flags.is(CBone::flSelected)) sel_bones.push_back(*b_it); return sel_bones.size(); }
ICF void fill_bones_by_parent(BoneVec& bones,CBone* start) { bones.push_back (start); for (BoneIt b_it=start->children.begin(); b_it!=start->children.end(); b_it++) fill_bones_by_parent(bones,*b_it); }