aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
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}