mantis 9039: do not lose runtime permitions on llAttachToAvatarTemp

This commit is contained in:
UbitUmarov
2022-11-18 03:38:58 +00:00
parent 22652d3e56
commit de418e9596

View File

@@ -3836,6 +3836,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if ((effectivePerms & (uint)PermissionMask.Transfer) == 0)
return;
UUID permsgranter = m_item.PermsGranter;
int permsmask = m_item.PermsMask;
grp.SetOwner(target.UUID, target.ControllingClient.ActiveGroupId);
if (World.Permissions.PropagatePermissions())
@@ -3849,6 +3851,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
grp.InvalidateEffectivePerms();
}
m_item.PermsMask = permsmask;
m_item.PermsGranter = permsgranter;
grp.RootPart.ObjectSaleType = 0;
grp.RootPart.SalePrice = 10;