aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorMelanie Thielker2010-06-27 21:04:30 +0200
committerMelanie Thielker2010-06-27 21:04:30 +0200
commit19f18c8a1b6377fec44ebd358bb4d810d36bd586 (patch)
treefcd8efb89176b65d56b073ec34a14d650b35be23 /OpenSim/Region/Framework/Scenes
parentRestore "AllowCareminsterFunctions" as an alias to the new "AllowLightshareFu... (diff)
downloadopensim-SC_OLD-19f18c8a1b6377fec44ebd358bb4d810d36bd586.zip
opensim-SC_OLD-19f18c8a1b6377fec44ebd358bb4d810d36bd586.tar.gz
opensim-SC_OLD-19f18c8a1b6377fec44ebd358bb4d810d36bd586.tar.bz2
opensim-SC_OLD-19f18c8a1b6377fec44ebd358bb4d810d36bd586.tar.xz
Make drag copy and copy-on-ray handle friends list perms properly
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index 81ef54f..dfcbc4c 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -1851,6 +1851,28 @@ namespace OpenSim.Region.Framework.Scenes
1851 SceneObjectGroup copy = original.Copy(AgentID, GroupID, true); 1851 SceneObjectGroup copy = original.Copy(AgentID, GroupID, true);
1852 copy.AbsolutePosition = copy.AbsolutePosition + offset; 1852 copy.AbsolutePosition = copy.AbsolutePosition + offset;
1853 1853
1854 if (copy.OwnerID != AgentID)
1855 {
1856 copy.SetOwnerId(AgentID);
1857 copy.SetRootPartOwner(copy.RootPart, AgentID, GroupID);
1858
1859 List<SceneObjectPart> partList =
1860 new List<SceneObjectPart>(copy.Children.Values);
1861
1862 if (m_parentScene.Permissions.PropagatePermissions())
1863 {
1864 foreach (SceneObjectPart child in partList)
1865 {
1866 child.Inventory.ChangeInventoryOwner(AgentID);
1867 child.TriggerScriptChangedEvent(Changed.OWNER);
1868 child.ApplyNextOwnerPermissions();
1869 }
1870 }
1871
1872 copy.RootPart.ObjectSaleType = 0;
1873 copy.RootPart.SalePrice = 10;
1874 }
1875
1854 Entities.Add(copy); 1876 Entities.Add(copy);
1855 1877
1856 // Since we copy from a source group that is in selected 1878 // Since we copy from a source group that is in selected