diff options
author | UbitUmarov | 2014-07-16 16:22:32 +0100 |
---|---|---|
committer | UbitUmarov | 2014-07-16 16:22:32 +0100 |
commit | 19d33c571d8f48501ecb2409814d5b95b2b4be23 (patch) | |
tree | 8e08805a71ebea81de75b5805105f325e0defa0f /OpenSim/Region/CoreModules/Framework | |
parent | Merge branch 'avination-current' into ubitwork (diff) | |
parent | Merge branch 'avination-current' of ssh://3dhosting.de/var/git/careminster in... (diff) | |
download | opensim-SC-19d33c571d8f48501ecb2409814d5b95b2b4be23.zip opensim-SC-19d33c571d8f48501ecb2409814d5b95b2b4be23.tar.gz opensim-SC-19d33c571d8f48501ecb2409814d5b95b2b4be23.tar.bz2 opensim-SC-19d33c571d8f48501ecb2409814d5b95b2b4be23.tar.xz |
Merge branch 'avination-current' into ubitwork
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index a606d76..193a27b 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -265,7 +265,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
265 | return UUID.Zero; | 265 | return UUID.Zero; |
266 | } | 266 | } |
267 | 267 | ||
268 | remoteClient.SendAgentAlertMessage("Notecard saved", false); | 268 | remoteClient.SendAlertMessage("Notecard saved"); |
269 | } | 269 | } |
270 | else if ((InventoryType)item.InvType == InventoryType.LSL) | 270 | else if ((InventoryType)item.InvType == InventoryType.LSL) |
271 | { | 271 | { |
@@ -275,7 +275,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
275 | return UUID.Zero; | 275 | return UUID.Zero; |
276 | } | 276 | } |
277 | 277 | ||
278 | remoteClient.SendAgentAlertMessage("Script saved", false); | 278 | remoteClient.SendAlertMessage("Script saved"); |
279 | } | 279 | } |
280 | 280 | ||
281 | AssetBase asset = | 281 | AssetBase asset = |
@@ -799,6 +799,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
799 | XmlDocument doc = new XmlDocument(); | 799 | XmlDocument doc = new XmlDocument(); |
800 | doc.LoadXml(xmlData); | 800 | doc.LoadXml(xmlData); |
801 | XmlElement e = (XmlElement)doc.SelectSingleNode("/CoalescedObject"); | 801 | XmlElement e = (XmlElement)doc.SelectSingleNode("/CoalescedObject"); |
802 | Vector3 rez_pos; | ||
802 | if (e == null || attachment) // Single | 803 | if (e == null || attachment) // Single |
803 | { | 804 | { |
804 | SceneObjectGroup g = SceneObjectSerializer.FromOriginalXmlFormat(xmlData); | 805 | SceneObjectGroup g = SceneObjectSerializer.FromOriginalXmlFormat(xmlData); |
@@ -820,6 +821,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
820 | RayStart, RayEnd, RayTargetID, Quaternion.Identity, | 821 | RayStart, RayEnd, RayTargetID, Quaternion.Identity, |
821 | BypassRayCast, bRayEndIsIntersection, true, g.GetAxisAlignedBoundingBox(out offsetHeight), false); | 822 | BypassRayCast, bRayEndIsIntersection, true, g.GetAxisAlignedBoundingBox(out offsetHeight), false); |
822 | pos.Z += offsetHeight; | 823 | pos.Z += offsetHeight; |
824 | rez_pos = pos; | ||
823 | } | 825 | } |
824 | else | 826 | else |
825 | { | 827 | { |
@@ -834,6 +836,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
834 | BypassRayCast, bRayEndIsIntersection, true, | 836 | BypassRayCast, bRayEndIsIntersection, true, |
835 | bbox, false); | 837 | bbox, false); |
836 | 838 | ||
839 | rez_pos = pos; | ||
840 | |||
837 | pos -= bbox / 2; | 841 | pos -= bbox / 2; |
838 | 842 | ||
839 | XmlNodeList groups = e.SelectNodes("SceneObjectGroup"); | 843 | XmlNodeList groups = e.SelectNodes("SceneObjectGroup"); |
@@ -870,7 +874,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
870 | primcount += g.PrimCount; | 874 | primcount += g.PrimCount; |
871 | 875 | ||
872 | if (!m_Scene.Permissions.CanRezObject( | 876 | if (!m_Scene.Permissions.CanRezObject( |
873 | primcount, remoteClient.AgentId, pos) | 877 | primcount, remoteClient.AgentId, rez_pos) |
874 | && !attachment) | 878 | && !attachment) |
875 | { | 879 | { |
876 | // The client operates in no fail mode. It will | 880 | // The client operates in no fail mode. It will |
@@ -887,7 +891,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
887 | return null; | 891 | return null; |
888 | } | 892 | } |
889 | 893 | ||
890 | if (item != null && !DoPreRezWhenFromItem(remoteClient, item, objlist, pos, attachment)) | 894 | if (item != null && !DoPreRezWhenFromItem(remoteClient, item, objlist, rez_pos, attachment)) |
891 | return null; | 895 | return null; |
892 | 896 | ||
893 | for (int i = 0; i < objlist.Count; i++) | 897 | for (int i = 0; i < objlist.Count; i++) |