+ AvatarManager & ObjectManager no longer assume each avatar seen is a new avatar, at least for ObjectUpdatePackets -- the other object packets still need to check for existing avatars before adding new ones.

+ Added back in KakaduWrap because the jasper wrapper doesn't support TGA/TIFF to J2C (yet) -- so it's needed for uploads

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@461 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Michael Cortez
2006-11-01 20:33:15 +00:00
parent 1b68d36e6a
commit d44fd1ee4e
5 changed files with 185 additions and 4 deletions

View File

@@ -303,8 +303,18 @@ namespace libsecondlife
}
else if (block.ObjectData.Length == 76)
{
// New avatar spotted
Avatar avatar = new Avatar();
Avatar avatar;
if (Client.Avatars.Contains(block.FullID))
{
avatar = Client.Avatars.GetAvatar(block.FullID);
}
else
{
// New avatar spotted
avatar = new Avatar();
}
string FirstName = "";
string LastName = "";
string GroupName = "";
@@ -335,7 +345,10 @@ namespace libsecondlife
}
else
{
Client.Avatars.AddAvatar(avatar);
if (Client.Avatars.Contains(avatar.ID) == false)
{
Client.Avatars.AddAvatar(avatar);
}
if (OnNewAvatar != null)
{
@@ -429,6 +442,8 @@ namespace libsecondlife
Client.Self.Rotation = Rotation;
}
//TODO: Should check Client.Avatars.Contains() to see if this avatar is already being tracked, and update as nessesary.
AvatarUpdate avupdate = new AvatarUpdate();
avupdate.LocalID = localid;
avupdate.State = state;