enable agent hover again, (it is still bad on most viewers for opensim

0.9.1.0-post-fixes
UbitUmarov 2019-09-11 13:54:14 +01:00
parent 9d6c996570
commit 07874fa058
1 changed files with 5 additions and 6 deletions

View File

@ -77,11 +77,11 @@ namespace OpenSim.Region.ClientStack.LindenCaps
{ {
RegisterCaps(agentID, caps); RegisterCaps(agentID, caps);
}; };
/*
ISimulatorFeaturesModule simFeatures = scene.RequestModuleInterface<ISimulatorFeaturesModule>(); ISimulatorFeaturesModule simFeatures = scene.RequestModuleInterface<ISimulatorFeaturesModule>();
if(simFeatures != null) if(simFeatures != null)
simFeatures.AddFeature("AvatarHoverHeightEnabled",OSD.FromBoolean(true)); simFeatures.AddFeature("AvatarHoverHeightEnabled",OSD.FromBoolean(true));
*/
} }
public void PostInitialise() {} public void PostInitialise() {}
@ -153,8 +153,7 @@ namespace OpenSim.Region.ClientStack.LindenCaps
} }
if (req.ContainsKey("hover_height")) if (req.ContainsKey("hover_height"))
{ {
//data.HoverHeight = (float)req["hover_height"].AsReal(); data.HoverHeight = (float)req["hover_height"].AsReal();
data.HoverHeight = req["hover_height"].AsReal();
} }
if (req.ContainsKey("language")) if (req.ContainsKey("language"))
{ {
@ -177,10 +176,10 @@ namespace OpenSim.Region.ClientStack.LindenCaps
resp["hover_height"] = data.HoverHeight; resp["hover_height"] = data.HoverHeight;
resp["language"] = data.Language; resp["language"] = data.Language;
resp["language_is_public"] = data.LanguageIsPublic; resp["language_is_public"] = data.LanguageIsPublic;
/*
IAvatarFactoryModule afm = m_scenes[0].RequestModuleInterface<IAvatarFactoryModule>(); IAvatarFactoryModule afm = m_scenes[0].RequestModuleInterface<IAvatarFactoryModule>();
afm?.SetPreferencesHoverZ(agent, (float)data.HoverHeight); afm?.SetPreferencesHoverZ(agent, (float)data.HoverHeight);
*/
string response = OSDParser.SerializeLLSDXmlString(resp); string response = OSDParser.SerializeLLSDXmlString(resp);
return response; return response;
} }