aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
authorMelanie Thielker2010-06-28 01:29:30 +0200
committerMelanie2010-06-28 01:36:40 +0100
commit4cdda2cae9f91ac793bfaf192e94cbe4607c3886 (patch)
treede2de53cb30faf2e11f5820c2edfdd647c7121d5 /OpenSim/Region/Framework/Scenes/SceneGraph.cs
parentFix a simian compiler warning (diff)
downloadopensim-SC_OLD-4cdda2cae9f91ac793bfaf192e94cbe4607c3886.zip
opensim-SC_OLD-4cdda2cae9f91ac793bfaf192e94cbe4607c3886.tar.gz
opensim-SC_OLD-4cdda2cae9f91ac793bfaf192e94cbe4607c3886.tar.bz2
opensim-SC_OLD-4cdda2cae9f91ac793bfaf192e94cbe4607c3886.tar.xz
Fix Copy on Ray, Drag Copy and other little things. Removed the wrong and
nonworking ownership assignment in SOG, which messed things up before. No longer trust the client to send the ID of the person something is copied as, since it allows to run a script with someone else's permissions. Properly adjust inventory ownership and perms.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index ebb3005..5fea332 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -1750,7 +1750,7 @@ namespace OpenSim.Region.Framework.Scenes
1750 SceneObjectGroup copy = original.Copy(AgentID, GroupID, true); 1750 SceneObjectGroup copy = original.Copy(AgentID, GroupID, true);
1751 copy.AbsolutePosition = copy.AbsolutePosition + offset; 1751 copy.AbsolutePosition = copy.AbsolutePosition + offset;
1752 1752
1753 if (copy.OwnerID != AgentID) 1753 if (original.OwnerID != AgentID)
1754 { 1754 {
1755 copy.SetOwnerId(AgentID); 1755 copy.SetOwnerId(AgentID);
1756 copy.SetRootPartOwner(copy.RootPart, AgentID, GroupID); 1756 copy.SetRootPartOwner(copy.RootPart, AgentID, GroupID);