aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorMelanie Thielker2008-10-04 15:54:21 +0000
committerMelanie Thielker2008-10-04 15:54:21 +0000
commitc28e8fcd67fb284930a0cc0e2f2ac5c8f7df3bc3 (patch)
treed24ae6321e9a1299ac48ba32529e5da679616017 /OpenSim/Region/Environment
parentGuard against negative scale set through LSL functions (diff)
downloadopensim-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 '')
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs7
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs23
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs2
3 files changed, 10 insertions, 22 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index 7ab0deb..f06b77f 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -452,13 +452,10 @@ namespace OpenSim.Region.Environment.Scenes
452 } 452 }
453 453
454 public SceneObjectGroup RezSingleAttachment( 454 public SceneObjectGroup RezSingleAttachment(
455 IClientAPI remoteClient, UUID itemID, uint AttachmentPt,uint ItemFlags, uint NextOwnerMask) 455 IClientAPI remoteClient, UUID itemID, uint AttachmentPt)
456 { 456 {
457 SceneObjectGroup objatt = m_parentScene.RezObject(remoteClient, itemID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true, 457 SceneObjectGroup objatt = m_parentScene.RezObject(remoteClient, itemID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true,
458 (uint)(PermissionMask.Copy | PermissionMask.Move | PermissionMask.Modify | PermissionMask.Transfer), 458 false, false, remoteClient.AgentId, true);
459 (uint)(PermissionMask.Copy | PermissionMask.Move | PermissionMask.Modify | PermissionMask.Transfer),
460 (uint)(PermissionMask.Copy | PermissionMask.Move | PermissionMask.Modify | PermissionMask.Transfer),
461 ItemFlags, false, false, remoteClient.AgentId, true);
462 459
463 if (objatt != null) 460 if (objatt != null)
464 { 461 {
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;
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 4c0aa90..30f3e04 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -2958,7 +2958,7 @@ namespace OpenSim.Region.Environment.Scenes
2958 { 2958 {
2959 // Rez from inventory 2959 // Rez from inventory
2960 m_scene.RezSingleAttachment(ControllingClient, itemID, 2960 m_scene.RezSingleAttachment(ControllingClient, itemID,
2961 (uint)attachpoint, 0, 0); 2961 (uint)attachpoint);
2962 } 2962 }
2963 catch (Exception e) 2963 catch (Exception e)
2964 { 2964 {