48    {
   49        Object targetObject = action_data.m_Target.GetObject();
 
   50        Object targetParent = action_data.m_Target.GetParent();
 
   51 
   52        if ( targetParent && targetParent.IsInherited(TentBase) ) 
   53        {
   54            array<string> selections = new array<string>;
   55            targetObject.GetActionComponentNameList(action_data.m_Target.GetComponentIndex(), selections);
   56            
   57            TentBase tent = TentBase.Cast( targetParent );
   58            for ( int s = 0; s < selections.Count(); s++)
   59            {
   60                if ( tent.CanToggleAnimations(selections[s]) )
   61                {
   62                    tent.ToggleAnimation( selections[s] );
   63                }
   64            }
   65            
   66            
   67            tent.SetAffectPathgraph( true, false );
   68            
   69            if ( tent.CanAffectPathgraph() )
   70            {
   71                
   72                tent.RegenerateNavmesh();
   73            }
   74        }
   75    }