aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-01-05 19:40:54 +0000
committerJustin Clark-Casey (justincc)2012-01-05 19:40:54 +0000
commitc201b54b8524033310c59fe353616e84616a542e (patch)
tree06a233f77d38b984fd65f7592c6fcdbd1ffc1ef0 /OpenSim/Region/OptionalModules
parentCommenting out DataSnapShot message "Registering service discovery capability... (diff)
downloadopensim-SC_OLD-c201b54b8524033310c59fe353616e84616a542e.zip
opensim-SC_OLD-c201b54b8524033310c59fe353616e84616a542e.tar.gz
opensim-SC_OLD-c201b54b8524033310c59fe353616e84616a542e.tar.bz2
opensim-SC_OLD-c201b54b8524033310c59fe353616e84616a542e.tar.xz
Improve "app rebake" command to return a better message if no uploaded texture ids were available for the rebake request
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
index 7e15718..39cd4c9 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs
@@ -240,11 +240,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance
240 ScenePresence sp = scene.GetScenePresence(firstname, lastname); 240 ScenePresence sp = scene.GetScenePresence(firstname, lastname);
241 if (sp != null && !sp.IsChildAgent) 241 if (sp != null && !sp.IsChildAgent)
242 { 242 {
243 MainConsole.Instance.OutputFormat( 243 int rebakesRequested = scene.AvatarFactory.RequestRebake(sp, false);
244 "Requesting rebake of uploaded textures for {0}",
245 sp.Name, scene.RegionInfo.RegionName);
246 244
247 scene.AvatarFactory.RequestRebake(sp, false); 245 if (rebakesRequested > 0)
246 MainConsole.Instance.OutputFormat(
247 "Requesting rebake of {0} uploaded textures for {1} in {2}",
248 rebakesRequested, sp.Name, scene.RegionInfo.RegionName);
249 else
250 MainConsole.Instance.OutputFormat(
251 "No texture IDs available for rebake request for {0} in {1}",
252 sp.Name, scene.RegionInfo.RegionName);
248 } 253 }
249 } 254 }
250 } 255 }