aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2012-07-29 15:11:39 +0200
committerMelanie2012-07-29 15:11:39 +0200
commit659be9dd504587c637e5b3ae14276b2327029e0d (patch)
treefe9d38e46f77b46b1d6f8d400eb337bd99cd00e8
parentSee that if controls are taken, those are released before taking new ones (diff)
downloadopensim-SC-659be9dd504587c637e5b3ae14276b2327029e0d.zip
opensim-SC-659be9dd504587c637e5b3ae14276b2327029e0d.tar.gz
opensim-SC-659be9dd504587c637e5b3ae14276b2327029e0d.tar.bz2
opensim-SC-659be9dd504587c637e5b3ae14276b2327029e0d.tar.xz
When controls are released by script, don't drop the permission to
retake them.
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 2425646..fac249e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3315,8 +3315,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3315 { 3315 {
3316 // Unregister controls from Presence 3316 // Unregister controls from Presence
3317 presence.UnRegisterControlEventsToScript(m_host.LocalId, m_item.ItemID); 3317 presence.UnRegisterControlEventsToScript(m_host.LocalId, m_item.ItemID);
3318 // Remove Take Control permission.
3319 m_item.PermsMask &= ~ScriptBaseClass.PERMISSION_TAKE_CONTROLS;
3320 } 3318 }
3321 } 3319 }
3322 } 3320 }