//endregion
}
//region Create an Avatar from the decoded data
Avatar avatar = GetAvatar(simulator, block.ID, block.FullID);
objectupdate.Avatar = true;
// Textures
objectupdate.Textures = new TextureEntry(block.TextureEntry, 0,
block.TextureEntry.length);
onObjectDataBlockUpdate.raiseEvent(new ObjectDataBlockUpdateEventArgs(simulator, avatar, data, block, objectupdate, nameValues));
long oldSeatID = avatar.ParentID;
avatar.ID = block.FullID;
avatar.LocalID = block.ID;
avatar.Scale = block.Scale;
avatar.CollisionPlane = objectupdate.CollisionPlane;
avatar.Position = objectupdate.Position;
avatar.Velocity = objectupdate.Velocity;
avatar.Acceleration = objectupdate.Acceleration;
avatar.Rotation = objectupdate.Rotation;
avatar.AngularVelocity = objectupdate.AngularVelocity;
avatar.NameValues = nameValues;
avatar.PrimData = data;
if (block.Data.length > 0)
{
JLogger.warn("Unexpected Data field for an avatar update, length " + block.Data.length);
}
avatar.ParentID = block.ParentID;
avatar.RegionHandle = update.RegionData.RegionHandle;
JLogger.debug("Set an avatar: " + avatar.getName()
+ "\n with name values:\n" + NameValue.NameValuesToString(avatar.NameValues));
SetAvatarSittingOn(simulator, avatar, block.ParentID, oldSeatID);
// Textures