aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2018-12-17 10:57:09 +0000
committerUbitUmarov2018-12-17 10:57:09 +0000
commit530a6a40edeff13d2e26c3c7d912efe4520014b3 (patch)
tree8a8311bb0491767f1b3e6887a0c9772dbe91edca
parentupdate url to 0.9.1.0 page (diff)
downloadopensim-SC-530a6a40edeff13d2e26c3c7d912efe4520014b3.zip
opensim-SC-530a6a40edeff13d2e26c3c7d912efe4520014b3.tar.gz
opensim-SC-530a6a40edeff13d2e26c3c7d912efe4520014b3.tar.bz2
opensim-SC-530a6a40edeff13d2e26c3c7d912efe4520014b3.tar.xz
mantis 8427: add new reject flags, change default, see mantis
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs7
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs2
-rw-r--r--bin/ScriptSyntax.xml10
3 files changed, 15 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index bb8fb79..11dbae1 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -15305,6 +15305,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
15305 bool checkAgents = !((rejectTypes & ScriptBaseClass.RC_REJECT_AGENTS) == ScriptBaseClass.RC_REJECT_AGENTS); 15305 bool checkAgents = !((rejectTypes & ScriptBaseClass.RC_REJECT_AGENTS) == ScriptBaseClass.RC_REJECT_AGENTS);
15306 bool checkNonPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_NONPHYSICAL) == ScriptBaseClass.RC_REJECT_NONPHYSICAL); 15306 bool checkNonPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_NONPHYSICAL) == ScriptBaseClass.RC_REJECT_NONPHYSICAL);
15307 bool checkPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_PHYSICAL) == ScriptBaseClass.RC_REJECT_PHYSICAL); 15307 bool checkPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_PHYSICAL) == ScriptBaseClass.RC_REJECT_PHYSICAL);
15308 bool rejectHost = ((rejectTypes & ScriptBaseClass.RC_REJECT_HOST) != 0);
15309 bool rejectHostGroup = ((rejectTypes & ScriptBaseClass.RC_REJECT_HOSTGROUP) != 0);
15308 15310
15309 if (World.SupportsRayCastFiltered()) 15311 if (World.SupportsRayCastFiltered())
15310 { 15312 {
@@ -15432,7 +15434,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
15432 continue; 15434 continue;
15433 15435
15434 // physics ray can return colisions with host prim 15436 // physics ray can return colisions with host prim
15435 if (m_host.LocalId == result.ConsumerID) 15437 if (rejectHost && m_host.LocalId == result.ConsumerID)
15436 continue; 15438 continue;
15437 15439
15438 UUID itemID = UUID.Zero; 15440 UUID itemID = UUID.Zero;
@@ -15442,8 +15444,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
15442 // It's a prim! 15444 // It's a prim!
15443 if (part != null) 15445 if (part != null)
15444 { 15446 {
15445 // dont detect members of same object ??? 15447 if (rejectHostGroup && part.ParentGroup == thisgrp)
15446 if (part.ParentGroup == thisgrp)
15447 continue; 15448 continue;
15448 15449
15449 if ((dataFlags & ScriptBaseClass.RC_GET_ROOT_KEY) == ScriptBaseClass.RC_GET_ROOT_KEY) 15450 if ((dataFlags & ScriptBaseClass.RC_GET_ROOT_KEY) == ScriptBaseClass.RC_GET_ROOT_KEY)
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 15a57cd..49f46b7 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -842,6 +842,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
842 public static readonly LSLInteger RC_REJECT_PHYSICAL = 2; 842 public static readonly LSLInteger RC_REJECT_PHYSICAL = 2;
843 public static readonly LSLInteger RC_REJECT_NONPHYSICAL = 4; 843 public static readonly LSLInteger RC_REJECT_NONPHYSICAL = 4;
844 public static readonly LSLInteger RC_REJECT_LAND = 8; 844 public static readonly LSLInteger RC_REJECT_LAND = 8;
845 public static readonly LSLInteger RC_REJECT_HOST = 0x20000000;
846 public static readonly LSLInteger RC_REJECT_HOSTGROUP = 0x40000000;
845 847
846 public static readonly LSLInteger RC_GET_NORMAL = 1; 848 public static readonly LSLInteger RC_GET_NORMAL = 1;
847 public static readonly LSLInteger RC_GET_ROOT_KEY = 2; 849 public static readonly LSLInteger RC_GET_ROOT_KEY = 2;
diff --git a/bin/ScriptSyntax.xml b/bin/ScriptSyntax.xml
index fb6969e..60daa89 100644
--- a/bin/ScriptSyntax.xml
+++ b/bin/ScriptSyntax.xml
@@ -1,4 +1,4 @@
1fe7d5416-2379-feca-3b16-6b9854799c50 141ccf83c-178f-6070-7960-1448d28dcdab
2<llsd><map><key>llsd-lsl-syntax-version</key><integer>2</integer> 2<llsd><map><key>llsd-lsl-syntax-version</key><integer>2</integer>
3<key>controls</key> 3<key>controls</key>
4<map> 4<map>
@@ -2567,6 +2567,14 @@ fe7d5416-2379-feca-3b16-6b9854799c50
2567 <key>type</key><string>integer</string> 2567 <key>type</key><string>integer</string>
2568 <key>value</key><string>1</string> 2568 <key>value</key><string>1</string>
2569 </map> 2569 </map>
2570 <key>RC_REJECT_HOST</key><map>
2571 <key>type</key><string>integer</string>
2572 <key>value</key><string>0x20000000</string>
2573 </map>
2574 <key>RC_REJECT_HOSTGROUP</key><map>
2575 <key>type</key><string>integer</string>
2576 <key>value</key><string>0x40000000</string>
2577 </map>
2570 <key>RC_REJECT_LAND</key><map> 2578 <key>RC_REJECT_LAND</key><map>
2571 <key>type</key><string>integer</string> 2579 <key>type</key><string>integer</string>
2572 <key>value</key><string>8</string> 2580 <key>value</key><string>8</string>