Gems/EMotionFX/Code/EMotionFX/Source/Actor.cpp
void Actor::RemoveAllMaterials()
    {
        // for all LODs
        for (AZStd::vector<Material*>& materials : m_materials)
        {
            // delete all materials
            for (Material* material : materials)
            {
                material->Destroy();
            }
        }

        m_materials.clear();
    }
// removes all materials from the actor
removes all materials from the actor
removes all materials from the actor
void Actor::RemoveAllMaterials()
    {
        for (AZStd::vector<Material*>& materials : m_materials)
        {
            for (Material* material : materials)
            {
                material->Destroy();
            }
        }
        m_materials.clear();
    }
void Actor :: RemoveAllMaterials ( ) { for ( AZStd :: vector < Material * > & materials : m_materials ) { for ( Material * material : materials ) { material -> Destroy ( ) ; } } m_materials . clear ( ) ; }
removes all materials from the actor
removes all materials from the actor
// for all LODs // delete all materials