When we start the appearance saving thread, make sure we set the culture to En_US so that a different culture doesn't save values with commas as decimal points, etc.

This will hopefully stop giants stalking the grid.
See http://opensimulator.org/mantis/view.php?id=5614
bulletsim
Justin Clark-Casey (justincc) 2011-07-29 22:27:04 +01:00
parent 5043be13fb
commit 84c68c61bd
1 changed files with 5 additions and 0 deletions

View File

@ -305,6 +305,11 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
private void HandleAppearanceSave(UUID agentid)
{
// We must set appearance parameters in the en_US culture in order to avoid issues where values are saved
// in a culture where decimal points are commas and then reloaded in a culture which just treats them as
// number seperators.
Culture.SetCurrentCulture();
ScenePresence sp = m_scene.GetScenePresence(agentid);
if (sp == null)
{