diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/AvatarAppearance.cs | 9 | ||||
-rw-r--r-- | OpenSim/Framework/AvatarWearable.cs | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index ee60622..1e003f7 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs | |||
@@ -111,6 +111,10 @@ namespace OpenSim.Framework | |||
111 | SetDefaultParams(); | 111 | SetDefaultParams(); |
112 | SetHeight(); | 112 | SetHeight(); |
113 | 113 | ||
114 | m_wearables = new AvatarWearable[AvatarWearable.MAX_WEARABLES]; | ||
115 | for (int i = 0 ; i < AvatarWearable.MAX_WEARABLES ; i++ ) | ||
116 | m_wearables[i] = new AvatarWearable(); | ||
117 | |||
114 | m_attachments = new Dictionary<int, List<AvatarAttachment>>(); | 118 | m_attachments = new Dictionary<int, List<AvatarAttachment>>(); |
115 | } | 119 | } |
116 | 120 | ||
@@ -172,10 +176,11 @@ namespace OpenSim.Framework | |||
172 | m_serial = appearance.Serial; | 176 | m_serial = appearance.Serial; |
173 | m_owner = appearance.Owner; | 177 | m_owner = appearance.Owner; |
174 | 178 | ||
175 | m_wearables = null; | 179 | m_wearables = new AvatarWearable[AvatarWearable.MAX_WEARABLES]; |
180 | for (int i = 0 ; i < AvatarWearable.MAX_WEARABLES ; i++ ) | ||
181 | m_wearables[i] = new AvatarWearable(); | ||
176 | if (appearance.Wearables != null) | 182 | if (appearance.Wearables != null) |
177 | { | 183 | { |
178 | m_wearables = new AvatarWearable[AvatarWearable.MAX_WEARABLES]; //should be 15 of these | ||
179 | for (int i = 0; i < AvatarWearable.MAX_WEARABLES; i++) | 184 | for (int i = 0; i < AvatarWearable.MAX_WEARABLES; i++) |
180 | SetWearable(i,appearance.Wearables[i]); | 185 | SetWearable(i,appearance.Wearables[i]); |
181 | } | 186 | } |
diff --git a/OpenSim/Framework/AvatarWearable.cs b/OpenSim/Framework/AvatarWearable.cs index 631971f..0a02dcf 100644 --- a/OpenSim/Framework/AvatarWearable.cs +++ b/OpenSim/Framework/AvatarWearable.cs | |||
@@ -63,7 +63,7 @@ namespace OpenSim.Framework | |||
63 | public static readonly int UNDERPANTS = 11; | 63 | public static readonly int UNDERPANTS = 11; |
64 | public static readonly int SKIRT = 12; | 64 | public static readonly int SKIRT = 12; |
65 | public static readonly int ALPHA = 13; | 65 | public static readonly int ALPHA = 13; |
66 | public static readonly int TATTOO = 15; | 66 | public static readonly int TATTOO = 14; |
67 | 67 | ||
68 | public static readonly int MAX_WEARABLES = 15; | 68 | public static readonly int MAX_WEARABLES = 15; |
69 | 69 | ||