* Single Attachments now work from inventory. You can attach from inventory and detach from inventory.

* Detaching from right clicking in world, detaches to your inventory.
* If you go up to a prim and attach it from in world, it appears in your inventory.
* Attachment placement is saved when you detach them. 
* Choosing wear remembers your last attachment point from inventory.
* Wrote a method to update an inventory item's asset and sends the updated inventory item to the Client
* Wrote a recursive method to find the folder of a known existing inventory item.
* Removed a block on physics object position on creation.  This might crash a region or two, let us know via Mantis if your region crashes because of a physics out of bounds error.
* Drop doesn't work.  The menu item doesn't even come up.  Don't know why :P.
This commit is contained in:
Teravus Ovares
2008-04-27 20:10:28 +00:00
parent 56497c9615
commit 911e63765c
10 changed files with 241 additions and 34 deletions

View File

@@ -272,8 +272,13 @@ namespace OpenSim.Framework.Communications.Cache
{
if (!RootFolder.Items.ContainsKey(itemInfo.ID))
{
RootFolder.Items.Add(itemInfo.ID, itemInfo);
}
else
{
RootFolder.Items[itemInfo.ID] = itemInfo;
}
}
}
else
@@ -287,6 +292,10 @@ namespace OpenSim.Framework.Communications.Cache
{
folder.Items.Add(itemInfo.ID, itemInfo);
}
else
{
folder.Items[itemInfo.ID] = itemInfo;
}
}
}
}

View File

@@ -455,6 +455,7 @@ namespace OpenSim.Framework
event SetAppearance OnSetAppearance;
event AvatarNowWearing OnAvatarNowWearing;
event RezSingleAttachmentFromInv OnRezSingleAttachmentFromInv;
event UUIDNameRequest OnDetachAttachmentIntoInv;
event ObjectAttach OnObjectAttach;
event ObjectDeselect OnObjectDetach;
event StartAnim OnStartAnim;