aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/ViewerSupport
diff options
context:
space:
mode:
authorUbitUmarov2019-10-31 16:41:28 +0000
committerUbitUmarov2019-10-31 16:41:28 +0000
commit3236e24c7469bf7e18555df2ba0690c0d0d845a7 (patch)
treeba09cf85c790b6e9710a06a3f6ab1f96e3cfbff9 /OpenSim/Region/OptionalModules/ViewerSupport
parentalways allow part deselect (diff)
downloadopensim-SC-3236e24c7469bf7e18555df2ba0690c0d0d845a7.zip
opensim-SC-3236e24c7469bf7e18555df2ba0690c0d0d845a7.tar.gz
opensim-SC-3236e24c7469bf7e18555df2ba0690c0d0d845a7.tar.bz2
opensim-SC-3236e24c7469bf7e18555df2ba0690c0d0d845a7.tar.xz
a disabled module has no caps to tell viewers (cameraonlymoduel)
Diffstat (limited to 'OpenSim/Region/OptionalModules/ViewerSupport')
-rw-r--r--OpenSim/Region/OptionalModules/ViewerSupport/CameraOnlyModeModule.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/OptionalModules/ViewerSupport/CameraOnlyModeModule.cs b/OpenSim/Region/OptionalModules/ViewerSupport/CameraOnlyModeModule.cs
index 54f3ab6..6c2ccdf 100644
--- a/OpenSim/Region/OptionalModules/ViewerSupport/CameraOnlyModeModule.cs
+++ b/OpenSim/Region/OptionalModules/ViewerSupport/CameraOnlyModeModule.cs
@@ -122,6 +122,9 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport
122 122
123 private void OnSimulatorFeaturesRequest(UUID agentID, ref OSDMap features) 123 private void OnSimulatorFeaturesRequest(UUID agentID, ref OSDMap features)
124 { 124 {
125 if (!m_Enabled)
126 return;
127
125 m_log.DebugFormat("[CAMERA-ONLY MODE]: OnSimulatorFeaturesRequest in {0}", m_scene.RegionInfo.RegionName); 128 m_log.DebugFormat("[CAMERA-ONLY MODE]: OnSimulatorFeaturesRequest in {0}", m_scene.RegionInfo.RegionName);
126 if (m_Helper.UserLevel(agentID) <= m_UserLevel) 129 if (m_Helper.UserLevel(agentID) <= m_UserLevel)
127 { 130 {
@@ -137,10 +140,6 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport
137 } 140 }
138 extrasMap["camera-only-mode"] = OSDMap.FromString("true"); 141 extrasMap["camera-only-mode"] = OSDMap.FromString("true");
139 m_log.DebugFormat("[CAMERA-ONLY MODE]: Sent in {0}", m_scene.RegionInfo.RegionName); 142 m_log.DebugFormat("[CAMERA-ONLY MODE]: Sent in {0}", m_scene.RegionInfo.RegionName);
140
141 // Detaching attachments doesn't work for HG visitors,
142 // so I'm giving that up.
143 //Util.FireAndForget(delegate { DetachAttachments(agentID); });
144 } 143 }
145 else 144 else
146 m_log.DebugFormat("[CAMERA-ONLY MODE]: NOT Sending camera-only-mode in {0}", m_scene.RegionInfo.RegionName); 145 m_log.DebugFormat("[CAMERA-ONLY MODE]: NOT Sending camera-only-mode in {0}", m_scene.RegionInfo.RegionName);