From e3e7e73db3fe99761ba090910634c86caacd7a3c Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 30 May 2009 16:13:40 +0000 Subject: Added option (on my default) to the clone avatar function so that the clothes and attachments that the target avatar is wearing, to begin with, are removed. So the end result isn't a merger of those clothes/attachments and the ones the template avatar is wearing. Added IPAddress ListenIPAddress property to BaseHttpServer so that the listening/binding IP can be set. --- OpenSim/Framework/AvatarAppearance.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Framework/AvatarAppearance.cs') diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index ec31018..aee16c4 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs @@ -242,6 +242,15 @@ namespace OpenSim.Framework m_wearables[PANTS].ItemID = PANTS_ITEM; } + public virtual void ClearWearables() + { + for (int i = 0; i < 13; i++) + { + m_wearables[i].AssetID = UUID.Zero; + m_wearables[i].ItemID = UUID.Zero; + } + } + public virtual void SetDefaultParams(byte[] vparams) { // TODO: Figure out better values then 'fat scientist 150' or 'alien 0' @@ -583,6 +592,11 @@ namespace OpenSim.Framework m_attachments.Remove(attachpoint); } + public void ClearAttachments() + { + m_attachments.Clear(); + } + string GetAttachmentsString() { List strings = new List(); -- cgit v1.1