diff options
author | Melanie Thielker | 2008-10-04 15:54:21 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-04 15:54:21 +0000 |
commit | c28e8fcd67fb284930a0cc0e2f2ac5c8f7df3bc3 (patch) | |
tree | d24ae6321e9a1299ac48ba32529e5da679616017 /OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |
parent | Guard against negative scale set through LSL functions (diff) | |
download | opensim-SC-c28e8fcd67fb284930a0cc0e2f2ac5c8f7df3bc3.zip opensim-SC-c28e8fcd67fb284930a0cc0e2f2ac5c8f7df3bc3.tar.gz opensim-SC-c28e8fcd67fb284930a0cc0e2f2ac5c8f7df3bc3.tar.bz2 opensim-SC-c28e8fcd67fb284930a0cc0e2f2ac5c8f7df3bc3.tar.xz |
Unclutter rezzing methods by removing the ad hoc permissions parameters.
Thise were client supplied untrusted values we never used anyway.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 26f3e1d..2285b04 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -1677,9 +1677,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
1677 | { | 1677 | { |
1678 | if (!grp.HasGroupChanged) | 1678 | if (!grp.HasGroupChanged) |
1679 | { | 1679 | { |
1680 | m_log.InfoFormat("Detaching {0} which is unchanged", grp.UUID.ToString()); | 1680 | m_log.InfoFormat("[ATTACHMENT] Detaching {0} which is unchanged", grp.UUID.ToString()); |
1681 | return; | 1681 | return; |
1682 | } | 1682 | } |
1683 | m_log.InfoFormat("[ATTACHMENT] Updating asset for attachment {0}, attachpoint {1}", grp.UUID.ToString(), grp.GetAttachmentPoint()); | ||
1683 | string sceneObjectXml = objectGroup.ToXmlString(); | 1684 | string sceneObjectXml = objectGroup.ToXmlString(); |
1684 | 1685 | ||
1685 | CachedUserInfo userInfo = | 1686 | CachedUserInfo userInfo = |
@@ -1818,19 +1819,16 @@ namespace OpenSim.Region.Environment.Scenes | |||
1818 | /// <param name="RayEndIsIntersection"></param> | 1819 | /// <param name="RayEndIsIntersection"></param> |
1819 | /// <param name="EveryoneMask"></param> | 1820 | /// <param name="EveryoneMask"></param> |
1820 | /// <param name="GroupMask"></param> | 1821 | /// <param name="GroupMask"></param> |
1821 | /// <param name="NextOwnerMask"></param> | ||
1822 | /// <param name="ItemFlags"></param> | ||
1823 | /// <param name="RezSelected"></param> | 1822 | /// <param name="RezSelected"></param> |
1824 | /// <param name="RemoveItem"></param> | 1823 | /// <param name="RemoveItem"></param> |
1825 | /// <param name="fromTaskID"></param> | 1824 | /// <param name="fromTaskID"></param> |
1826 | public virtual void RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart, | 1825 | public virtual void RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart, |
1827 | UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection, | 1826 | UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection, |
1828 | uint EveryoneMask, uint GroupMask, uint NextOwnerMask, uint ItemFlags, | ||
1829 | bool RezSelected, bool RemoveItem, UUID fromTaskID) | 1827 | bool RezSelected, bool RemoveItem, UUID fromTaskID) |
1830 | { | 1828 | { |
1831 | RezObject( | 1829 | RezObject( |
1832 | remoteClient, itemID, RayEnd, RayStart, RayTargetID, BypassRayCast, RayEndIsIntersection, | 1830 | remoteClient, itemID, RayEnd, RayStart, RayTargetID, BypassRayCast, RayEndIsIntersection, |
1833 | EveryoneMask, GroupMask, NextOwnerMask, ItemFlags, RezSelected, RemoveItem, fromTaskID, false); | 1831 | RezSelected, RemoveItem, fromTaskID, false); |
1834 | } | 1832 | } |
1835 | 1833 | ||
1836 | /// <summary> | 1834 | /// <summary> |
@@ -1843,10 +1841,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
1843 | /// <param name="RayTargetID"></param> | 1841 | /// <param name="RayTargetID"></param> |
1844 | /// <param name="BypassRayCast"></param> | 1842 | /// <param name="BypassRayCast"></param> |
1845 | /// <param name="RayEndIsIntersection"></param> | 1843 | /// <param name="RayEndIsIntersection"></param> |
1846 | /// <param name="EveryoneMask"></param> | ||
1847 | /// <param name="GroupMask"></param> | ||
1848 | /// <param name="NextOwnerMask"></param> | ||
1849 | /// <param name="ItemFlags"></param> | ||
1850 | /// <param name="RezSelected"></param> | 1844 | /// <param name="RezSelected"></param> |
1851 | /// <param name="RemoveItem"></param> | 1845 | /// <param name="RemoveItem"></param> |
1852 | /// <param name="fromTaskID"></param> | 1846 | /// <param name="fromTaskID"></param> |
@@ -1854,7 +1848,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
1854 | /// <returns></returns> | 1848 | /// <returns></returns> |
1855 | public virtual SceneObjectGroup RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart, | 1849 | public virtual SceneObjectGroup RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart, |
1856 | UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection, | 1850 | UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection, |
1857 | uint EveryoneMask, uint GroupMask, uint NextOwnerMask, uint ItemFlags, | ||
1858 | bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment) | 1851 | bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment) |
1859 | { | 1852 | { |
1860 | // Work out position details | 1853 | // Work out position details |
@@ -2259,9 +2252,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
2259 | } | 2252 | } |
2260 | 2253 | ||
2261 | public void RezSingleAttachment(IClientAPI remoteClient, UUID itemID, | 2254 | public void RezSingleAttachment(IClientAPI remoteClient, UUID itemID, |
2262 | uint AttachmentPt, uint ItemFlags, uint NextOwnerMask) | 2255 | uint AttachmentPt) |
2263 | { | 2256 | { |
2264 | SceneObjectGroup att = m_innerScene.RezSingleAttachment(remoteClient, itemID, AttachmentPt, ItemFlags, NextOwnerMask); | 2257 | SceneObjectGroup att = m_innerScene.RezSingleAttachment(remoteClient, itemID, AttachmentPt); |
2265 | 2258 | ||
2266 | if (att == null) | 2259 | if (att == null) |
2267 | { | 2260 | { |
@@ -2269,13 +2262,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
2269 | return; | 2262 | return; |
2270 | } | 2263 | } |
2271 | 2264 | ||
2272 | RezSingleAttachment(att, remoteClient, itemID, AttachmentPt, | 2265 | RezSingleAttachment(att, remoteClient, itemID, AttachmentPt); |
2273 | ItemFlags, NextOwnerMask); | ||
2274 | } | 2266 | } |
2275 | 2267 | ||
2276 | public void RezSingleAttachment(SceneObjectGroup att, | 2268 | public void RezSingleAttachment(SceneObjectGroup att, |
2277 | IClientAPI remoteClient, UUID itemID, uint AttachmentPt, | 2269 | IClientAPI remoteClient, UUID itemID, uint AttachmentPt) |
2278 | uint ItemFlags, uint NextOwnerMask) | ||
2279 | { | 2270 | { |
2280 | if (att.RootPart != null) | 2271 | if (att.RootPart != null) |
2281 | AttachmentPt = att.RootPart.AttachmentPoint; | 2272 | AttachmentPt = att.RootPart.AttachmentPoint; |