a disabled module has no caps to tell viewers (cameraonlymoduel)

0.9.1.1
UbitUmarov 2019-10-31 16:41:28 +00:00
parent 5a3ba2afbb
commit 3236e24c74
1 changed files with 3 additions and 4 deletions

View File

@ -122,6 +122,9 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport
private void OnSimulatorFeaturesRequest(UUID agentID, ref OSDMap features)
{
if (!m_Enabled)
return;
m_log.DebugFormat("[CAMERA-ONLY MODE]: OnSimulatorFeaturesRequest in {0}", m_scene.RegionInfo.RegionName);
if (m_Helper.UserLevel(agentID) <= m_UserLevel)
{
@ -137,10 +140,6 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport
}
extrasMap["camera-only-mode"] = OSDMap.FromString("true");
m_log.DebugFormat("[CAMERA-ONLY MODE]: Sent in {0}", m_scene.RegionInfo.RegionName);
// Detaching attachments doesn't work for HG visitors,
// so I'm giving that up.
//Util.FireAndForget(delegate { DetachAttachments(agentID); });
}
else
m_log.DebugFormat("[CAMERA-ONLY MODE]: NOT Sending camera-only-mode in {0}", m_scene.RegionInfo.RegionName);