aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2018-05-12 19:57:55 +0100
committerUbitUmarov2018-05-12 19:57:55 +0100
commit468b25ff6992080668a2701a408d7a43d1883fd5 (patch)
tree07a1d67b12a130a3b783f0816c1709febc08d3c1
parentcreate user with model: do not copy missing items; convert v1.0 to v2.0 weara... (diff)
downloadopensim-SC-468b25ff6992080668a2701a408d7a43d1883fd5.zip
opensim-SC-468b25ff6992080668a2701a408d7a43d1883fd5.tar.gz
opensim-SC-468b25ff6992080668a2701a408d7a43d1883fd5.tar.bz2
opensim-SC-468b25ff6992080668a2701a408d7a43d1883fd5.tar.xz
let wearables check command suport variable number of wearables
Diffstat (limited to '')
-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 }