mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
IAvatarFactory.UpdateDatabase gets the assetID and not the object's inworld UUID.
This commit is contained in:
@@ -364,6 +364,12 @@ namespace OpenSim.Framework
|
||||
ID = id;
|
||||
}
|
||||
|
||||
public InventoryItemBase(UUID id, UUID owner)
|
||||
{
|
||||
ID = id;
|
||||
Owner = owner;
|
||||
}
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
return MemberwiseClone();
|
||||
|
||||
@@ -2309,7 +2309,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
ScenePresence presence;
|
||||
if (TryGetAvatar(remoteClient.AgentId, out presence))
|
||||
{
|
||||
presence.Appearance.SetAttachment((int)AttachmentPt, itemID, att.UUID);
|
||||
InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID, remoteClient.AgentId));
|
||||
|
||||
presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/);
|
||||
IAvatarFactory ava = RequestModuleInterface<IAvatarFactory>();
|
||||
if (ava != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user