diff options
author | Justin Clark-Casey (justincc) | 2012-01-05 19:40:54 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-01-05 19:40:54 +0000 |
commit | c201b54b8524033310c59fe353616e84616a542e (patch) | |
tree | 06a233f77d38b984fd65f7592c6fcdbd1ffc1ef0 /OpenSim/Region/OptionalModules/Avatar | |
parent | Commenting out DataSnapShot message "Registering service discovery capability... (diff) | |
download | opensim-SC-c201b54b8524033310c59fe353616e84616a542e.zip opensim-SC-c201b54b8524033310c59fe353616e84616a542e.tar.gz opensim-SC-c201b54b8524033310c59fe353616e84616a542e.tar.bz2 opensim-SC-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/Avatar')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs | 13 |
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 | } |