Remove code that tried to delete an attachment back to inventory if RezSingleAttachmentFromInventoryInternal() returned null.

null would only ever be returned if the item couldn't be located within inventory and this would happen immediately.
In this case, derezzing wouldn't work anyway since there is no item to derez.
0.7.4.1
Justin Clark-Casey (justincc) 2012-06-28 22:48:49 +01:00
parent 972b0b52f9
commit f263d6a910
1 changed files with 1 additions and 6 deletions

View File

@ -365,12 +365,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
return null;
}
SceneObjectGroup att = RezSingleAttachmentFromInventoryInternal(sp, itemID, UUID.Zero, AttachmentPt);
if (att == null)
DetachSingleAttachmentToInv(sp, itemID);
return att;
return RezSingleAttachmentFromInventoryInternal(sp, itemID, UUID.Zero, AttachmentPt);
}
public void RezMultipleAttachmentsFromInventory(IScenePresence sp, List<KeyValuePair<UUID, uint>> rezlist)