aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorUbitUmarov2012-05-15 00:04:40 +0100
committerUbitUmarov2012-05-15 00:04:40 +0100
commit1b81ce303e3648ad745bae5c6904051eaa0cfd9b (patch)
treeef851e00f0b48b2a9bd078c713d5fe0dad067ce5 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentmake llGetCameraPos and llGetCameraRot apply to avatar that granted permissio... (diff)
parentCompletely revamp collision handling. Now works as it is supposed to. (diff)
downloadopensim-SC-1b81ce303e3648ad745bae5c6904051eaa0cfd9b.zip
opensim-SC-1b81ce303e3648ad745bae5c6904051eaa0cfd9b.tar.gz
opensim-SC-1b81ce303e3648ad745bae5c6904051eaa0cfd9b.tar.bz2
opensim-SC-1b81ce303e3648ad745bae5c6904051eaa0cfd9b.tar.xz
Merge branch 'avination' into ubitwork
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs21
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 10bddbd..e18d9cf 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3198,14 +3198,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3198 { 3198 {
3199 m_host.AddScriptLPS(1); 3199 m_host.AddScriptLPS(1);
3200 m_host.CollisionFilter.Clear(); 3200 m_host.CollisionFilter.Clear();
3201 if (id != null) 3201 UUID objectID;
3202 { 3202
3203 m_host.CollisionFilter.Add(accept,id); 3203 if (!UUID.TryParse(id, out objectID))
3204 } 3204 objectID = UUID.Zero;
3205 else 3205
3206 { 3206 if (objectID == UUID.Zero && name == "")
3207 m_host.CollisionFilter.Add(accept,name); 3207 return;
3208 } 3208
3209 m_host.CollisionFilter.Add(accept,objectID.ToString() + name);
3209 } 3210 }
3210 3211
3211 public void llTakeControls(int controls, int accept, int pass_on) 3212 public void llTakeControls(int controls, int accept, int pass_on)
@@ -5023,11 +5024,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5023 m_host.AddScriptLPS(1); 5024 m_host.AddScriptLPS(1);
5024 if (pass == 0) 5025 if (pass == 0)
5025 { 5026 {
5026 m_host.ParentGroup.PassCollision = false; 5027 m_host.PassCollisions = false;
5027 } 5028 }
5028 else 5029 else
5029 { 5030 {
5030 m_host.ParentGroup.PassCollision = true; 5031 m_host.PassCollisions = true;
5031 } 5032 }
5032 } 5033 }
5033 5034