diff options
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 76ade1f..22a81ac 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3780,6 +3780,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3780 | { | 3780 | { |
3781 | m_host.AddScriptLPS(1); | 3781 | m_host.AddScriptLPS(1); |
3782 | UUID invItemID = InventorySelf(); | 3782 | UUID invItemID = InventorySelf(); |
3783 | UUID targetID; | ||
3784 | |||
3785 | if (!UUID.TryParse(target, out targetID)) | ||
3786 | return; | ||
3783 | 3787 | ||
3784 | TaskInventoryItem item; | 3788 | TaskInventoryItem item; |
3785 | m_host.TaskInventory.LockItemsForRead(true); | 3789 | m_host.TaskInventory.LockItemsForRead(true); |
@@ -3798,7 +3802,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3798 | if (sp != null) | 3802 | if (sp != null) |
3799 | client = sp.ControllingClient; | 3803 | client = sp.ControllingClient; |
3800 | 3804 | ||
3801 | SceneObjectPart targetPart = World.GetSceneObjectPart((UUID)target); | 3805 | SceneObjectPart targetPart = World.GetSceneObjectPart((UUID)targetID); |
3802 | 3806 | ||
3803 | if (targetPart.ParentGroup.RootPart.AttachmentPoint != 0) | 3807 | if (targetPart.ParentGroup.RootPart.AttachmentPoint != 0) |
3804 | return; // Fail silently if attached | 3808 | return; // Fail silently if attached |
@@ -9143,7 +9147,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9143 | 9147 | ||
9144 | string reply = String.Empty; | 9148 | string reply = String.Empty; |
9145 | 9149 | ||
9146 | GridRegion info = m_ScriptEngine.World.GridService.GetRegionByName(m_ScriptEngine.World.RegionInfo.ScopeID, simulator); | 9150 | GridRegion info; |
9151 | |||
9152 | if (m_ScriptEngine.World.RegionInfo.RegionName == simulator) | ||
9153 | info = new GridRegion(m_ScriptEngine.World.RegionInfo); | ||
9154 | else | ||
9155 | info = m_ScriptEngine.World.GridService.GetRegionByName(m_ScriptEngine.World.RegionInfo.ScopeID, simulator); | ||
9147 | 9156 | ||
9148 | switch (data) | 9157 | switch (data) |
9149 | { | 9158 | { |