aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-02-13 16:35:42 +0000
committerJustin Clarke Casey2008-02-13 16:35:42 +0000
commitdf21da6decff40793acb1f7667b7ea111faab7e3 (patch)
tree1a0fce58e139cbb623c69aaf3f457063d3f6fbc6 /OpenSim/Region/Environment/Modules
parentAdded some locks on the cache Dictionary in AvatarFactoryModule. (diff)
downloadopensim-SC_OLD-df21da6decff40793acb1f7667b7ea111faab7e3.zip
opensim-SC_OLD-df21da6decff40793acb1f7667b7ea111faab7e3.tar.gz
opensim-SC_OLD-df21da6decff40793acb1f7667b7ea111faab7e3.tar.bz2
opensim-SC_OLD-df21da6decff40793acb1f7667b7ea111faab7e3.tar.xz
* Patch from Dr Schofld's (IBM). In his own words
all TerrainEngine.LoadFromFileX(string filename) methods don't set the dirty bits in heightmap.diff[,] in contrast to the TerrainEngine.LoadFromFileX(string filename, int dimensionX, int dimensionY, int lowerboundX, int lowerboundY) cousins. this has the unpleasant drawback that the Scene.SendTerrainUpdate(bool) will not send layer data to the client. the attached patch fixes all LoadFromFileX(.) methods. Thanks! * Also small build fix for AvatarFactoryModule
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs
index b8b6be8..6042a54 100644
--- a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs
+++ b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs
@@ -178,9 +178,11 @@ namespace OpenSim.Region.Environment.Modules
178 178
179 if (m_avatarsAppearance.ContainsKey(clientView.AgentId)) 179 if (m_avatarsAppearance.ContainsKey(clientView.AgentId))
180 { 180 {
181 AvatarAppearance avatAppearance = null;
182
181 lock (m_avatarsAppearance) 183 lock (m_avatarsAppearance)
182 { 184 {
183 AvatarAppearance avatAppearance = m_avatarsAppearance[clientView.AgentId]; 185 avatAppearance = m_avatarsAppearance[clientView.AgentId];
184 } 186 }
185 avatAppearance.Wearables[wear.Type].AssetID = assetId; 187 avatAppearance.Wearables[wear.Type].AssetID = assetId;
186 avatAppearance.Wearables[wear.Type].ItemID = wear.ItemID; 188 avatAppearance.Wearables[wear.Type].ItemID = wear.ItemID;