diff options
author | Melanie | 2012-05-14 23:33:16 +0100 |
---|---|---|
committer | Melanie | 2012-05-14 23:33:16 +0100 |
commit | 71115c32ad68a546f8bbaf52408cdfadda21b352 (patch) | |
tree | 481a80299a300b95a6c64c49d76859045ca64892 /OpenSim/Region/ScriptEngine | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Completely revamp collision handling. Now works as it is supposed to. (diff) | |
download | opensim-SC-71115c32ad68a546f8bbaf52408cdfadda21b352.zip opensim-SC-71115c32ad68a546f8bbaf52408cdfadda21b352.tar.gz opensim-SC-71115c32ad68a546f8bbaf52408cdfadda21b352.tar.bz2 opensim-SC-71115c32ad68a546f8bbaf52408cdfadda21b352.tar.xz |
Merge branch 'avination' into careminster
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 8c4ee41..8072e72 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3186,14 +3186,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3186 | { | 3186 | { |
3187 | m_host.AddScriptLPS(1); | 3187 | m_host.AddScriptLPS(1); |
3188 | m_host.CollisionFilter.Clear(); | 3188 | m_host.CollisionFilter.Clear(); |
3189 | if (id != null) | 3189 | UUID objectID; |
3190 | { | 3190 | |
3191 | m_host.CollisionFilter.Add(accept,id); | 3191 | if (!UUID.TryParse(id, out objectID)) |
3192 | } | 3192 | objectID = UUID.Zero; |
3193 | else | 3193 | |
3194 | { | 3194 | if (objectID == UUID.Zero && name == "") |
3195 | m_host.CollisionFilter.Add(accept,name); | 3195 | return; |
3196 | } | 3196 | |
3197 | m_host.CollisionFilter.Add(accept,objectID.ToString() + name); | ||
3197 | } | 3198 | } |
3198 | 3199 | ||
3199 | public void llTakeControls(int controls, int accept, int pass_on) | 3200 | public void llTakeControls(int controls, int accept, int pass_on) |
@@ -4871,11 +4872,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4871 | m_host.AddScriptLPS(1); | 4872 | m_host.AddScriptLPS(1); |
4872 | if (pass == 0) | 4873 | if (pass == 0) |
4873 | { | 4874 | { |
4874 | m_host.ParentGroup.PassCollision = false; | 4875 | m_host.PassCollisions = false; |
4875 | } | 4876 | } |
4876 | else | 4877 | else |
4877 | { | 4878 | { |
4878 | m_host.ParentGroup.PassCollision = true; | 4879 | m_host.PassCollisions = true; |
4879 | } | 4880 | } |
4880 | } | 4881 | } |
4881 | 4882 | ||