From 34d91c31cfd03270a2fb1c45f0c8909df4905457 Mon Sep 17 00:00:00 2001 From: gareth Date: Tue, 10 Apr 2007 02:03:47 +0000 Subject: And now clothes update and show for all users woohoo! --- OpenSim.RegionServer/world/AvatarUpdate.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'OpenSim.RegionServer') diff --git a/OpenSim.RegionServer/world/AvatarUpdate.cs b/OpenSim.RegionServer/world/AvatarUpdate.cs index 2cc4ede..cfb138a 100644 --- a/OpenSim.RegionServer/world/AvatarUpdate.cs +++ b/OpenSim.RegionServer/world/AvatarUpdate.cs @@ -142,6 +142,22 @@ namespace OpenSim.world avp.VisualParam = new AvatarAppearancePacket.VisualParamBlock[218]; avp.ObjectData.TextureEntry = this.avatarAppearanceTexture.ToBytes(); + AgentWearablesUpdatePacket aw = new AgentWearablesUpdatePacket(); + aw.AgentData.AgentID = this.ControllingClient.AgentID; + aw.AgentData.SessionID = userInfo.SessionID; + aw.AgentData.SerialNum = (uint)(new Random()).Next(); + + aw.WearableData = new AgentWearablesUpdatePacket.WearableDataBlock[13]; + AgentWearablesUpdatePacket.WearableDataBlock awb; + for (int i = 0; i < 13; i++) + { + awb = new AgentWearablesUpdatePacket.WearableDataBlock(); + awb.WearableType = (byte)i; + awb.AssetID = this.Wearables[i].AssetID; + awb.ItemID = this.Wearables[i].ItemID; + aw.WearableData[i] = awb; + } + AvatarAppearancePacket.VisualParamBlock avblock = null; for (int i = 0; i < 218; i++) { -- cgit v1.1