Fixes mantis #4691 for real. This time I tested it, and it works.

soprefactor
Diva Canto 2010-05-16 10:32:57 -07:00
parent 0b43b263d4
commit 2fb79646c6
2 changed files with 18 additions and 1 deletions

View File

@ -223,7 +223,7 @@ namespace OpenSim.Services.LLLoginService
{
FillOutInventoryData(invSkel, libService);
ActiveGestures = new ArrayList(gestures);
FillOutActiveGestures(gestures);
CircuitCode = (int)aCircuit.circuitcode;
Lastname = account.LastName;
@ -285,6 +285,22 @@ namespace OpenSim.Services.LLLoginService
}
}
private void FillOutActiveGestures(List<InventoryItemBase> gestures)
{
ArrayList list = new ArrayList();
if (gestures != null)
{
foreach (InventoryItemBase gesture in gestures)
{
Hashtable item = new Hashtable();
item["item_id"] = gesture.ID.ToString();
item["asset_id"] = gesture.AssetID.ToString();
list.Add(item);
}
}
ActiveGestures = list;
}
private void FillOutHomeData(GridUserInfo pinfo, GridRegion home)
{
int x = 1000 * (int)Constants.RegionSize, y = 1000 * (int)Constants.RegionSize;

View File

@ -274,6 +274,7 @@ namespace OpenSim.Services.LLLoginService
// Get active gestures
List<InventoryItemBase> gestures = m_InventoryService.GetActiveGestures(account.PrincipalID);
m_log.DebugFormat("[LLOGIN SERVICE]: {0} active gestures", gestures.Count);
//
// Login the presence