aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-07-29 22:27:04 +0100
committerJustin Clark-Casey (justincc)2011-07-29 22:27:04 +0100
commit84c68c61bd4c3f20640b7af2376c40ad5c38dc2c (patch)
tree68a93f60011f0f1ef50507d1e13608ffccfb962d /OpenSim
parentReturn null from CreateMeshFromPrimMesher if OpenJPEG decoding of the sculpt ... (diff)
downloadopensim-SC_OLD-84c68c61bd4c3f20640b7af2376c40ad5c38dc2c.zip
opensim-SC_OLD-84c68c61bd4c3f20640b7af2376c40ad5c38dc2c.tar.gz
opensim-SC_OLD-84c68c61bd4c3f20640b7af2376c40ad5c38dc2c.tar.bz2
opensim-SC_OLD-84c68c61bd4c3f20640b7af2376c40ad5c38dc2c.tar.xz
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
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
index 995a552..20dff0c 100644
--- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
@@ -305,6 +305,11 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
305 305
306 private void HandleAppearanceSave(UUID agentid) 306 private void HandleAppearanceSave(UUID agentid)
307 { 307 {
308 // We must set appearance parameters in the en_US culture in order to avoid issues where values are saved
309 // in a culture where decimal points are commas and then reloaded in a culture which just treats them as
310 // number seperators.
311 Culture.SetCurrentCulture();
312
308 ScenePresence sp = m_scene.GetScenePresence(agentid); 313 ScenePresence sp = m_scene.GetScenePresence(agentid);
309 if (sp == null) 314 if (sp == null)
310 { 315 {