aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-01 23:23:45 +0000
committerJustin Clark-Casey (justincc)2011-11-01 23:23:45 +0000
commit9456a540c50b90d2c2cdb1b556e9d6190f817426 (patch)
tree8e0de61cabd2000a25b3c35a88d082b23a79f52d /OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
parentAdd "show status" command to pCambot (diff)
downloadopensim-SC_OLD-9456a540c50b90d2c2cdb1b556e9d6190f817426.zip
opensim-SC_OLD-9456a540c50b90d2c2cdb1b556e9d6190f817426.tar.gz
opensim-SC_OLD-9456a540c50b90d2c2cdb1b556e9d6190f817426.tar.bz2
opensim-SC_OLD-9456a540c50b90d2c2cdb1b556e9d6190f817426.tar.xz
Add "appearance send" command to allow manual sending of appearance.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs19
1 files changed, 18 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
index 2cef8a9..f8120aa 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
@@ -98,7 +98,24 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
98 "Show appearance information for each avatar in the simulator.", 98 "Show appearance information for each avatar in the simulator.",
99 "At the moment this actually just checks that we have all the required baked textures. If not, then appearance is 'corrupt' and other avatars will continue to see a cloud.", 99 "At the moment this actually just checks that we have all the required baked textures. If not, then appearance is 'corrupt' and other avatars will continue to see a cloud.",
100 ShowAppearanceInfo); 100 ShowAppearanceInfo);
101 } 101
102 scene.AddCommand(
103 this, "appearance send",
104 "appearance send",
105 "Send appearance data for each avatar in the simulator to viewers.",
106 SendAppearance);
107 }
108
109 private void SendAppearance(string module, string[] cmd)
110 {
111 lock (m_scenes)
112 {
113 foreach (Scene scene in m_scenes.Values)
114 {
115 scene.ForEachRootScenePresence(sp => scene.AvatarFactory.SendAppearance(sp.UUID));
116 }
117 }
118 }
102 119
103 protected void ShowAppearanceInfo(string module, string[] cmd) 120 protected void ShowAppearanceInfo(string module, string[] cmd)
104 { 121 {