minor: remove a small amount of code duplication
parent
98c5ed2c79
commit
9c7f14bf36
|
@ -298,17 +298,16 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
Utils.StringToBytes(itemXml),
|
Utils.StringToBytes(itemXml),
|
||||||
objlist[0].OwnerID.ToString());
|
objlist[0].OwnerID.ToString());
|
||||||
m_Scene.AssetService.Store(asset);
|
m_Scene.AssetService.Store(asset);
|
||||||
|
|
||||||
|
item.AssetID = asset.FullID;
|
||||||
assetID = asset.FullID;
|
assetID = asset.FullID;
|
||||||
|
|
||||||
if (DeRezAction.SaveToExistingUserInventoryItem == action)
|
if (DeRezAction.SaveToExistingUserInventoryItem == action)
|
||||||
{
|
{
|
||||||
item.AssetID = asset.FullID;
|
|
||||||
m_Scene.InventoryService.UpdateItem(item);
|
m_Scene.InventoryService.UpdateItem(item);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
item.AssetID = asset.FullID;
|
|
||||||
|
|
||||||
uint effectivePerms = (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify | PermissionMask.Move) | 7;
|
uint effectivePerms = (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify | PermissionMask.Move) | 7;
|
||||||
foreach (SceneObjectGroup grp in objlist)
|
foreach (SceneObjectGroup grp in objlist)
|
||||||
effectivePerms &= grp.GetEffectivePermissions();
|
effectivePerms &= grp.GetEffectivePermissions();
|
||||||
|
|
Loading…
Reference in New Issue