small bit of refactoring,
parent
3be2e772ec
commit
5a63047144
|
@ -34,5 +34,7 @@ namespace OpenSim.Region.Environment.Interfaces
|
|||
public interface IAvatarFactory : IRegionModule
|
||||
{
|
||||
bool TryGetAvatarAppearance(LLUUID avatarId, out AvatarAppearance appearance);
|
||||
void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance);
|
||||
|
||||
}
|
||||
}
|
|
@ -170,15 +170,20 @@ namespace OpenSim.Region.Environment.Modules
|
|||
avatAppearance.Wearables[wear.Type].AssetID = assetId;
|
||||
avatAppearance.Wearables[wear.Type].ItemID = wear.ItemID;
|
||||
|
||||
UpdateDatabase(clientView.AgentId, avatAppearance);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance)
|
||||
{
|
||||
if (m_enablePersist)
|
||||
{
|
||||
m_appearanceMapper.Update(clientView.AgentId.UUID, avatAppearance);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
m_appearanceMapper.Update(userID.UUID, avatAppearance);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue