aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs18
1 files changed, 13 insertions, 5 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
index 60ae0cb..c04f40c 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
@@ -407,15 +407,21 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
407 { 407 {
408 sb.AppendFormat("Wearables checks for {0}\n\n", sp.Name); 408 sb.AppendFormat("Wearables checks for {0}\n\n", sp.Name);
409 409
410 for (int i = (int)WearableType.Shape; i < (int)WearableType.Physics; i++) 410 AvatarWearable[] wearables = sp.Appearance.Wearables;
411 if(wearables.Count() == 0)
411 { 412 {
412 AvatarWearable aw = sp.Appearance.Wearables[i]; 413 MainConsole.Instance.OutputFormat("avatar has no wearables");
414 return;
415 }
416
417 for (int i = 0; i < wearables.Count(); i++)
418 {
419 AvatarWearable aw = wearables[i];
413 420
421 sb.Append(Enum.GetName(typeof(WearableType), i));
422 sb.Append("\n");
414 if (aw.Count > 0) 423 if (aw.Count > 0)
415 { 424 {
416 sb.Append(Enum.GetName(typeof(WearableType), i));
417 sb.Append("\n");
418
419 for (int j = 0; j < aw.Count; j++) 425 for (int j = 0; j < aw.Count; j++)
420 { 426 {
421 WearableItem wi = aw[j]; 427 WearableItem wi = aw[j];
@@ -448,6 +454,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
448 sb.Append("\n"); 454 sb.Append("\n");
449 } 455 }
450 } 456 }
457 else
458 sb.Append(" Empty\n");
451 } 459 }
452 } 460 }
453 } 461 }