mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
More on mantis #7567. Two things:
- Increase the inventory cache timeout to 20 secs, so that the items will still be there when they are needed by the sim for rezzing - Before rezzing attachs, make a call to GetMultipleItems so to fetch them all at the same time
This commit is contained in:
@@ -304,6 +304,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||
m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing any attachments for {0} from simulator-side", sp.Name);
|
||||
|
||||
List<AvatarAttachment> attachments = sp.Appearance.GetAttachments();
|
||||
|
||||
// Let's get all items at once, so they get cached
|
||||
UUID[] items = new UUID[attachments.Count];
|
||||
int i = 0;
|
||||
foreach (AvatarAttachment attach in attachments)
|
||||
items[i++] = attach.ItemID;
|
||||
m_scene.InventoryService.GetMultipleItems(sp.UUID, items);
|
||||
|
||||
foreach (AvatarAttachment attach in attachments)
|
||||
{
|
||||
uint attachmentPt = (uint)attach.AttachPoint;
|
||||
|
||||
Reference in New Issue
Block a user