diff options
author | Melanie | 2012-07-29 15:11:39 +0200 |
---|---|---|
committer | Melanie | 2012-07-29 15:11:39 +0200 |
commit | 659be9dd504587c637e5b3ae14276b2327029e0d (patch) | |
tree | fe9d38e46f77b46b1d6f8d400eb337bd99cd00e8 /OpenSim/Region | |
parent | See that if controls are taken, those are released before taking new ones (diff) | |
download | opensim-SC_OLD-659be9dd504587c637e5b3ae14276b2327029e0d.zip opensim-SC_OLD-659be9dd504587c637e5b3ae14276b2327029e0d.tar.gz opensim-SC_OLD-659be9dd504587c637e5b3ae14276b2327029e0d.tar.bz2 opensim-SC_OLD-659be9dd504587c637e5b3ae14276b2327029e0d.tar.xz |
When controls are released by script, don't drop the permission to
retake them.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 |
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 | } |