aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs
index ea107de..5246b2f 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs
@@ -77,11 +77,11 @@ namespace OpenSim.Region.ClientStack.LindenCaps
77 { 77 {
78 RegisterCaps(agentID, caps); 78 RegisterCaps(agentID, caps);
79 }; 79 };
80/* 80
81 ISimulatorFeaturesModule simFeatures = scene.RequestModuleInterface<ISimulatorFeaturesModule>(); 81 ISimulatorFeaturesModule simFeatures = scene.RequestModuleInterface<ISimulatorFeaturesModule>();
82 if(simFeatures != null) 82 if(simFeatures != null)
83 simFeatures.AddFeature("AvatarHoverHeightEnabled",OSD.FromBoolean(true)); 83 simFeatures.AddFeature("AvatarHoverHeightEnabled",OSD.FromBoolean(true));
84*/ 84
85 } 85 }
86 86
87 public void PostInitialise() {} 87 public void PostInitialise() {}
@@ -153,8 +153,7 @@ namespace OpenSim.Region.ClientStack.LindenCaps
153 } 153 }
154 if (req.ContainsKey("hover_height")) 154 if (req.ContainsKey("hover_height"))
155 { 155 {
156 //data.HoverHeight = (float)req["hover_height"].AsReal(); 156 data.HoverHeight = (float)req["hover_height"].AsReal();
157 data.HoverHeight = req["hover_height"].AsReal();
158 } 157 }
159 if (req.ContainsKey("language")) 158 if (req.ContainsKey("language"))
160 { 159 {
@@ -177,10 +176,10 @@ namespace OpenSim.Region.ClientStack.LindenCaps
177 resp["hover_height"] = data.HoverHeight; 176 resp["hover_height"] = data.HoverHeight;
178 resp["language"] = data.Language; 177 resp["language"] = data.Language;
179 resp["language_is_public"] = data.LanguageIsPublic; 178 resp["language_is_public"] = data.LanguageIsPublic;
180/* 179
181 IAvatarFactoryModule afm = m_scenes[0].RequestModuleInterface<IAvatarFactoryModule>(); 180 IAvatarFactoryModule afm = m_scenes[0].RequestModuleInterface<IAvatarFactoryModule>();
182 afm?.SetPreferencesHoverZ(agent, (float)data.HoverHeight); 181 afm?.SetPreferencesHoverZ(agent, (float)data.HoverHeight);
183*/ 182
184 string response = OSDParser.SerializeLLSDXmlString(resp); 183 string response = OSDParser.SerializeLLSDXmlString(resp);
185 return response; 184 return response;
186 } 185 }