let wearables check command suport variable number of wearables
parent
0d83b9edc3
commit
468b25ff69
|
@ -407,15 +407,21 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
|
||||||
{
|
{
|
||||||
sb.AppendFormat("Wearables checks for {0}\n\n", sp.Name);
|
sb.AppendFormat("Wearables checks for {0}\n\n", sp.Name);
|
||||||
|
|
||||||
for (int i = (int)WearableType.Shape; i < (int)WearableType.Physics; i++)
|
AvatarWearable[] wearables = sp.Appearance.Wearables;
|
||||||
|
if(wearables.Count() == 0)
|
||||||
{
|
{
|
||||||
AvatarWearable aw = sp.Appearance.Wearables[i];
|
MainConsole.Instance.OutputFormat("avatar has no wearables");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (aw.Count > 0)
|
for (int i = 0; i < wearables.Count(); i++)
|
||||||
{
|
{
|
||||||
|
AvatarWearable aw = wearables[i];
|
||||||
|
|
||||||
sb.Append(Enum.GetName(typeof(WearableType), i));
|
sb.Append(Enum.GetName(typeof(WearableType), i));
|
||||||
sb.Append("\n");
|
sb.Append("\n");
|
||||||
|
if (aw.Count > 0)
|
||||||
|
{
|
||||||
for (int j = 0; j < aw.Count; j++)
|
for (int j = 0; j < aw.Count; j++)
|
||||||
{
|
{
|
||||||
WearableItem wi = aw[j];
|
WearableItem wi = aw[j];
|
||||||
|
@ -448,6 +454,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
|
||||||
sb.Append("\n");
|
sb.Append("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
sb.Append(" Empty\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue