diff options
author | UbitUmarov | 2017-01-16 20:27:39 +0000 |
---|---|---|
committer | UbitUmarov | 2017-01-16 20:27:39 +0000 |
commit | 180add745cea4a7e076afd1cfe1c922df1bf7e0b (patch) | |
tree | da9d65ee4918e3cd43acd19c99eb26e3afb764e3 /OpenSim/Region/OptionalModules/Avatar | |
parent | fix EffectiveGroupOrEveryOnePerms C&T == 0 case (diff) | |
download | opensim-SC_OLD-180add745cea4a7e076afd1cfe1c922df1bf7e0b.zip opensim-SC_OLD-180add745cea4a7e076afd1cfe1c922df1bf7e0b.tar.gz opensim-SC_OLD-180add745cea4a7e076afd1cfe1c922df1bf7e0b.tar.bz2 opensim-SC_OLD-180add745cea4a7e076afd1cfe1c922df1bf7e0b.tar.xz |
replace calls to SetOwnerId and SetRootPartOwner by a single new SetOwner() so owner is not changed twice on rootpart
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs b/OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs index ed27385..1d5e4fb 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Attachments/TempAttachmentsModule.cs | |||
@@ -163,8 +163,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Attachments | |||
163 | if ((effectivePerms & (uint)PermissionMask.Transfer) == 0) | 163 | if ((effectivePerms & (uint)PermissionMask.Transfer) == 0) |
164 | return 0; | 164 | return 0; |
165 | 165 | ||
166 | hostPart.ParentGroup.SetOwnerId(target.UUID); | 166 | hostPart.ParentGroup.SetOwner(target.UUID, target.ControllingClient.ActiveGroupId); |
167 | hostPart.ParentGroup.SetRootPartOwner(hostPart.ParentGroup.RootPart, target.UUID, target.ControllingClient.ActiveGroupId); | ||
168 | 167 | ||
169 | if (m_scene.Permissions.PropagatePermissions()) | 168 | if (m_scene.Permissions.PropagatePermissions()) |
170 | { | 169 | { |