diff options
author | Justin Clark-Casey (justincc) | 2012-01-04 22:45:07 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-01-04 22:45:07 +0000 |
commit | 8fb70a2058e98dea63e7ee7c5b55532668fccd38 (patch) | |
tree | 2c2df3f4fc871c14e266f952b0fa45fc30d47c4e /OpenSim/Region/CoreModules | |
parent | Separate out rebake request code from cache validation code AvatarFactoryModule. (diff) | |
download | opensim-SC-8fb70a2058e98dea63e7ee7c5b55532668fccd38.zip opensim-SC-8fb70a2058e98dea63e7ee7c5b55532668fccd38.tar.gz opensim-SC-8fb70a2058e98dea63e7ee7c5b55532668fccd38.tar.bz2 opensim-SC-8fb70a2058e98dea63e7ee7c5b55532668fccd38.tar.xz |
Add "appearance rebake" command to ask a specific viewer to rebake textures from the server end.
This is not as useful as it sounds, since you can only request rebakes for texture IDs already received.
In other words, if the viewer has never sent the server this information (which happens quite often) then it will have no effect.
Nonetheless, this is useful for diagnostic/debugging purposes.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index d64a0c1..9df0592 100644 --- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | |||
@@ -343,12 +343,21 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
343 | if (face.TextureID == UUID.Zero || face.TextureID == AppearanceManager.DEFAULT_AVATAR_TEXTURE) | 343 | if (face.TextureID == UUID.Zero || face.TextureID == AppearanceManager.DEFAULT_AVATAR_TEXTURE) |
344 | continue; | 344 | continue; |
345 | 345 | ||
346 | if (missingTexturesOnly && m_scene.AssetService.Get(face.TextureID.ToString()) != null) | 346 | if (missingTexturesOnly) |
347 | continue; | 347 | { |
348 | if (m_scene.AssetService.Get(face.TextureID.ToString()) != null) | ||
349 | continue; | ||
350 | else | ||
351 | m_log.DebugFormat( | ||
352 | "[AVFACTORY]: Missing baked texture {0} ({1}) for {2}, requesting rebake.", | ||
353 | face.TextureID, idx, sp.Name); | ||
354 | } | ||
348 | else | 355 | else |
356 | { | ||
349 | m_log.DebugFormat( | 357 | m_log.DebugFormat( |
350 | "[AVFACTORY]: Missing baked texture {0} ({1}) for {2}, requesting rebake.", | 358 | "[AVFACTORY]: Requesting rebake of {0} ({1}) for {2}.", |
351 | face.TextureID, idx, sp.Name); | 359 | face.TextureID, idx, sp.Name); |
360 | } | ||
352 | 361 | ||
353 | sp.ControllingClient.SendRebakeAvatarTextures(face.TextureID); | 362 | sp.ControllingClient.SendRebakeAvatarTextures(face.TextureID); |
354 | } | 363 | } |