From 07874fa058e7f92235030bae676388f96863a44d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 11 Sep 2019 13:54:14 +0100 Subject: enable agent hover again, (it is still bad on most viewers for opensim --- .../Region/ClientStack/Linden/Caps/AgentPreferencesModule.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden') 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 { RegisterCaps(agentID, caps); }; -/* + ISimulatorFeaturesModule simFeatures = scene.RequestModuleInterface(); if(simFeatures != null) simFeatures.AddFeature("AvatarHoverHeightEnabled",OSD.FromBoolean(true)); -*/ + } public void PostInitialise() {} @@ -153,8 +153,7 @@ namespace OpenSim.Region.ClientStack.LindenCaps } if (req.ContainsKey("hover_height")) { - //data.HoverHeight = (float)req["hover_height"].AsReal(); - data.HoverHeight = req["hover_height"].AsReal(); + data.HoverHeight = (float)req["hover_height"].AsReal(); } if (req.ContainsKey("language")) { @@ -177,10 +176,10 @@ namespace OpenSim.Region.ClientStack.LindenCaps resp["hover_height"] = data.HoverHeight; resp["language"] = data.Language; resp["language_is_public"] = data.LanguageIsPublic; -/* + IAvatarFactoryModule afm = m_scenes[0].RequestModuleInterface(); afm?.SetPreferencesHoverZ(agent, (float)data.HoverHeight); -*/ + string response = OSDParser.SerializeLLSDXmlString(resp); return response; } -- cgit v1.1