diff options
author | Melanie | 2012-05-15 00:17:52 +0200 |
---|---|---|
committer | Melanie | 2012-05-15 00:17:52 +0200 |
commit | ebdbaba615858cb500e0320234f70afc79ee7684 (patch) | |
tree | d1720690d95627e177f1eecbc5231cd5bd602937 /OpenSim/Region | |
parent | Fix an omission (diff) | |
parent | Merge branch 'avination' into ubitwork (diff) | |
download | opensim-SC_OLD-ebdbaba615858cb500e0320234f70afc79ee7684.zip opensim-SC_OLD-ebdbaba615858cb500e0320234f70afc79ee7684.tar.gz opensim-SC_OLD-ebdbaba615858cb500e0320234f70afc79ee7684.tar.bz2 opensim-SC_OLD-ebdbaba615858cb500e0320234f70afc79ee7684.tar.xz |
Merge branch 'ubitwork' into avination
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 18 |
1 files changed, 14 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 edabc2e..e18d9cf 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -10526,7 +10526,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10526 | return new LSL_Vector(); | 10526 | return new LSL_Vector(); |
10527 | 10527 | ||
10528 | m_host.TaskInventory.LockItemsForRead(true); | 10528 | m_host.TaskInventory.LockItemsForRead(true); |
10529 | if (m_host.TaskInventory[invItemID].PermsGranter == UUID.Zero) | 10529 | |
10530 | UUID agentID = m_host.TaskInventory[invItemID].PermsGranter; | ||
10531 | |||
10532 | // if (m_host.TaskInventory[invItemID].PermsGranter == UUID.Zero) | ||
10533 | if (agentID == UUID.Zero) | ||
10530 | { | 10534 | { |
10531 | m_host.TaskInventory.LockItemsForRead(false); | 10535 | m_host.TaskInventory.LockItemsForRead(false); |
10532 | return new LSL_Vector(); | 10536 | return new LSL_Vector(); |
@@ -10540,7 +10544,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10540 | } | 10544 | } |
10541 | m_host.TaskInventory.LockItemsForRead(false); | 10545 | m_host.TaskInventory.LockItemsForRead(false); |
10542 | 10546 | ||
10543 | ScenePresence presence = World.GetScenePresence(m_host.OwnerID); | 10547 | // ScenePresence presence = World.GetScenePresence(m_host.OwnerID); |
10548 | ScenePresence presence = World.GetScenePresence(agentID); | ||
10544 | if (presence != null) | 10549 | if (presence != null) |
10545 | { | 10550 | { |
10546 | LSL_Vector pos = new LSL_Vector(presence.CameraPosition.X, presence.CameraPosition.Y, presence.CameraPosition.Z); | 10551 | LSL_Vector pos = new LSL_Vector(presence.CameraPosition.X, presence.CameraPosition.Y, presence.CameraPosition.Z); |
@@ -10557,7 +10562,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10557 | return new LSL_Rotation(); | 10562 | return new LSL_Rotation(); |
10558 | 10563 | ||
10559 | m_host.TaskInventory.LockItemsForRead(true); | 10564 | m_host.TaskInventory.LockItemsForRead(true); |
10560 | if (m_host.TaskInventory[invItemID].PermsGranter == UUID.Zero) | 10565 | |
10566 | UUID agentID = m_host.TaskInventory[invItemID].PermsGranter; | ||
10567 | |||
10568 | // if (m_host.TaskInventory[invItemID].PermsGranter == UUID.Zero) | ||
10569 | if (agentID == UUID.Zero) | ||
10561 | { | 10570 | { |
10562 | m_host.TaskInventory.LockItemsForRead(false); | 10571 | m_host.TaskInventory.LockItemsForRead(false); |
10563 | return new LSL_Rotation(); | 10572 | return new LSL_Rotation(); |
@@ -10570,7 +10579,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10570 | } | 10579 | } |
10571 | m_host.TaskInventory.LockItemsForRead(false); | 10580 | m_host.TaskInventory.LockItemsForRead(false); |
10572 | 10581 | ||
10573 | ScenePresence presence = World.GetScenePresence(m_host.OwnerID); | 10582 | // ScenePresence presence = World.GetScenePresence(m_host.OwnerID); |
10583 | ScenePresence presence = World.GetScenePresence(agentID); | ||
10574 | if (presence != null) | 10584 | if (presence != null) |
10575 | { | 10585 | { |
10576 | return new LSL_Rotation(presence.CameraRotation.X, presence.CameraRotation.Y, presence.CameraRotation.Z, presence.CameraRotation.W); | 10586 | return new LSL_Rotation(presence.CameraRotation.X, presence.CameraRotation.Y, presence.CameraRotation.Z, presence.CameraRotation.W); |