aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AvatarAppearance.cs
diff options
context:
space:
mode:
authorMW2009-05-30 16:13:40 +0000
committerMW2009-05-30 16:13:40 +0000
commite3e7e73db3fe99761ba090910634c86caacd7a3c (patch)
tree27eae2627d04557b78d726d8f7644668d7d2431a /OpenSim/Framework/AvatarAppearance.cs
parentMade it so ( by default) the Clone avatar function, propagates the permission... (diff)
downloadopensim-SC_OLD-e3e7e73db3fe99761ba090910634c86caacd7a3c.zip
opensim-SC_OLD-e3e7e73db3fe99761ba090910634c86caacd7a3c.tar.gz
opensim-SC_OLD-e3e7e73db3fe99761ba090910634c86caacd7a3c.tar.bz2
opensim-SC_OLD-e3e7e73db3fe99761ba090910634c86caacd7a3c.tar.xz
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.
Diffstat (limited to 'OpenSim/Framework/AvatarAppearance.cs')
-rw-r--r--OpenSim/Framework/AvatarAppearance.cs14
1 files changed, 14 insertions, 0 deletions
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
242 m_wearables[PANTS].ItemID = PANTS_ITEM; 242 m_wearables[PANTS].ItemID = PANTS_ITEM;
243 } 243 }
244 244
245 public virtual void ClearWearables()
246 {
247 for (int i = 0; i < 13; i++)
248 {
249 m_wearables[i].AssetID = UUID.Zero;
250 m_wearables[i].ItemID = UUID.Zero;
251 }
252 }
253
245 public virtual void SetDefaultParams(byte[] vparams) 254 public virtual void SetDefaultParams(byte[] vparams)
246 { 255 {
247 // TODO: Figure out better values then 'fat scientist 150' or 'alien 0' 256 // TODO: Figure out better values then 'fat scientist 150' or 'alien 0'
@@ -583,6 +592,11 @@ namespace OpenSim.Framework
583 m_attachments.Remove(attachpoint); 592 m_attachments.Remove(attachpoint);
584 } 593 }
585 594
595 public void ClearAttachments()
596 {
597 m_attachments.Clear();
598 }
599
586 string GetAttachmentsString() 600 string GetAttachmentsString()
587 { 601 {
588 List<string> strings = new List<string>(); 602 List<string> strings = new List<string>();