diff options
author | Melanie | 2011-12-17 12:31:25 +0100 |
---|---|---|
committer | Melanie | 2011-12-17 12:31:25 +0100 |
commit | 8a9a8ed5c903f3f685dfff2fd81a2c9594a12584 (patch) | |
tree | d7614cf4139be6b37eb901c9513d6f5f348f230f /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC_OLD-8a9a8ed5c903f3f685dfff2fd81a2c9594a12584.zip opensim-SC_OLD-8a9a8ed5c903f3f685dfff2fd81a2c9594a12584.tar.gz opensim-SC_OLD-8a9a8ed5c903f3f685dfff2fd81a2c9594a12584.tar.bz2 opensim-SC_OLD-8a9a8ed5c903f3f685dfff2fd81a2c9594a12584.tar.xz |
Fix hit testing link sets properly. Fix raycasting for LSL.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index 4da8fe7..91a7b87 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | |||
@@ -431,6 +431,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
431 | // avatar rotation. This may include a nonzero elevation if | 431 | // avatar rotation. This may include a nonzero elevation if |
432 | // in mouselook. | 432 | // in mouselook. |
433 | ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar); | 433 | ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar); |
434 | if (avatar == null) | ||
435 | return sensedEntities; | ||
434 | fromRegionPos = avatar.AbsolutePosition; | 436 | fromRegionPos = avatar.AbsolutePosition; |
435 | q = avatar.Rotation; | 437 | q = avatar.Rotation; |
436 | } | 438 | } |
@@ -444,6 +446,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
444 | 446 | ||
445 | Action<ScenePresence> senseEntity = new Action<ScenePresence>(delegate(ScenePresence presence) | 447 | Action<ScenePresence> senseEntity = new Action<ScenePresence>(delegate(ScenePresence presence) |
446 | { | 448 | { |
449 | if (presence.PresenceType == PresenceType.Npc) | ||
450 | return; | ||
451 | |||
447 | if (presence.IsDeleted || presence.IsChildAgent || presence.GodLevel > 0.0) | 452 | if (presence.IsDeleted || presence.IsChildAgent || presence.GodLevel > 0.0) |
448 | return; | 453 | return; |
449 | 454 | ||