aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorMW2008-03-25 18:48:07 +0000
committerMW2008-03-25 18:48:07 +0000
commitc2ea7b99e1cdbc06035e12306a71712f763b0818 (patch)
treee25876965e745f65917e7a740b2617961ee4b325 /OpenSim/Region/Environment/Scenes/Scene.cs
parent* Tear down CAPS and http handlers when an agent leaves a region (via crossin... (diff)
downloadopensim-SC_OLD-c2ea7b99e1cdbc06035e12306a71712f763b0818.zip
opensim-SC_OLD-c2ea7b99e1cdbc06035e12306a71712f763b0818.tar.gz
opensim-SC_OLD-c2ea7b99e1cdbc06035e12306a71712f763b0818.tar.bz2
opensim-SC_OLD-c2ea7b99e1cdbc06035e12306a71712f763b0818.tar.xz
Moved Avatar appearance Factory to its own project so that the reference to MySQLDatabaseMapper could be removed from Region.Environment.
Added a using OpenSim.Framework.Data statement to MySQLDatabaseMapper , to try to fix the build problem that has been reported on the mailing list.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index f02f038..6644299 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1461,7 +1461,7 @@ namespace OpenSim.Region.Environment.Scenes
1461 m_log.Warn("[AVATAR DEBUGGING]: Couldn't fetch avatar appearance from factory, please report this to the opensim mantis"); 1461 m_log.Warn("[AVATAR DEBUGGING]: Couldn't fetch avatar appearance from factory, please report this to the opensim mantis");
1462 byte[] visualParams; 1462 byte[] visualParams;
1463 AvatarWearable[] wearables; 1463 AvatarWearable[] wearables;
1464 AvatarFactoryModule.GetDefaultAvatarAppearance(out wearables, out visualParams); 1464 GetDefaultAvatarAppearance(out wearables, out visualParams);
1465 appearance = new AvatarAppearance(client.AgentId, wearables, visualParams); 1465 appearance = new AvatarAppearance(client.AgentId, wearables, visualParams);
1466 } 1466 }
1467 } 1467 }
@@ -2723,5 +2723,25 @@ namespace OpenSim.Region.Environment.Scenes
2723 } 2723 }
2724 2724
2725 #endregion 2725 #endregion
2726
2727 #region Avatar Appearance Default
2728
2729 public static void GetDefaultAvatarAppearance(out AvatarWearable[] wearables, out byte[] visualParams)
2730 {
2731 visualParams = GetDefaultVisualParams();
2732 wearables = AvatarWearable.DefaultWearables;
2733 }
2734
2735 private static byte[] GetDefaultVisualParams()
2736 {
2737 byte[] visualParams;
2738 visualParams = new byte[218];
2739 for (int i = 0; i < 218; i++)
2740 {
2741 visualParams[i] = 100;
2742 }
2743 return visualParams;
2744 }
2745 #endregion
2726 } 2746 }
2727} 2747}