diff options
author | Justin Clark-Casey (justincc) | 2014-03-13 00:04:20 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-03-13 00:04:20 +0000 |
commit | 873eee543192632a7febb99aa77b53d14d926674 (patch) | |
tree | 24bf475fdabf0dac18a85072a54d9ee1e61a2ef9 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Only allow llBreakAllLinks() to work if script has received PERMISSION_CHANGE... (diff) | |
download | opensim-SC_OLD-873eee543192632a7febb99aa77b53d14d926674.zip opensim-SC_OLD-873eee543192632a7febb99aa77b53d14d926674.tar.gz opensim-SC_OLD-873eee543192632a7febb99aa77b53d14d926674.tar.bz2 opensim-SC_OLD-873eee543192632a7febb99aa77b53d14d926674.tar.xz |
Implement osForceBreakAllLinks().
Identical to llBreakAllLinks() except that it doesn't require the script to have link permissions.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index abd8123..2275c37 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3930,6 +3930,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3930 | return; | 3930 | return; |
3931 | } | 3931 | } |
3932 | 3932 | ||
3933 | BreakAllLinks(); | ||
3934 | } | ||
3935 | |||
3936 | public void BreakAllLinks() | ||
3937 | { | ||
3933 | SceneObjectGroup parentPrim = m_host.ParentGroup; | 3938 | SceneObjectGroup parentPrim = m_host.ParentGroup; |
3934 | if (parentPrim.AttachmentPoint != 0) | 3939 | if (parentPrim.AttachmentPoint != 0) |
3935 | return; // Fail silently if attached | 3940 | return; // Fail silently if attached |