+ 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user