aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden
diff options
context:
space:
mode:
authorUbitUmarov2019-09-11 13:54:14 +0100
committerUbitUmarov2019-09-11 13:54:14 +0100
commit07874fa058e7f92235030bae676388f96863a44d (patch)
tree595e28642863f9113c84d10b3a704d4c7c33c5d7 /OpenSim/Region/ClientStack/Linden
parentextent supported number of avatar textures/bakes/wearables, tell viewers abou... (diff)
downloadopensim-SC-07874fa058e7f92235030bae676388f96863a44d.zip
opensim-SC-07874fa058e7f92235030bae676388f96863a44d.tar.gz
opensim-SC-07874fa058e7f92235030bae676388f96863a44d.tar.bz2
opensim-SC-07874fa058e7f92235030bae676388f96863a44d.tar.xz
enable agent hover again, (it is still bad on most viewers for opensim
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-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 }