Fixed it so that a Avatar update shouldn't be sent every frame and none should be sent when not moving.

Fixed the problem with sometimes Avatar Animations being updated every frame.
New Asset uploads should now appear in the inventory all the time.
Moved Animation names/ LLUUIDs to their own class (AvatarAnimations)
This commit is contained in:
MW
2007-03-23 16:05:32 +00:00
parent 574797015d
commit 085c184c5c
8 changed files with 290 additions and 217 deletions

View File

@@ -279,15 +279,12 @@ namespace OpenSim
break;
case PacketType.AssetUploadRequest:
AssetUploadRequestPacket request = (AssetUploadRequestPacket)Pack;
Console.WriteLine("upload request "+ request.AssetBlock.TransactionID);
AssetBase newAsset = OpenSimRoot.Instance.AssetCache.UploadPacket(request, LLUUID.Random());
if (newAsset != null)
if ((newAsset != null) && (this.newAssetFolder != LLUUID.Zero))
{
OpenSimRoot.Instance.InventoryCache.AddNewInventoryItem(this, this.newAssetFolder, newAsset);
}
Console.WriteLine(request.ToString());
Console.WriteLine("combined uuid is " + request.AssetBlock.TransactionID.Combine(this.SecureSessionID).ToStringHyphenated());
AssetUploadCompletePacket response = new AssetUploadCompletePacket();
response.AssetBlock.Type =request.AssetBlock.Type;
response.AssetBlock.Success = true;