From 5f276c3212cd0e5385e62d0607c5adeec29b76d7 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 9 Dec 2011 23:54:39 +0000
Subject: Print out one log message for every missing baked texture, rather
than two.
---
.../Avatar/AvatarFactory/AvatarFactoryModule.cs | 26 ++++------------------
1 file changed, 4 insertions(+), 22 deletions(-)
(limited to 'OpenSim')
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
index 07d1cb3..f06fb14 100644
--- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
@@ -320,14 +320,14 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
defonly = false; // found a non-default texture reference
- if (!CheckBakedTextureAsset(sp, face.TextureID, idx))
+ if (m_scene.AssetService.Get(face.TextureID.ToString()) == null)
{
- // the asset didn't exist if we are only checking, then we found a bad
- // one and we're done otherwise, ask for a rebake
if (checkonly)
return false;
- m_log.InfoFormat("[AVFACTORY]: missing baked texture {0}, requesting rebake", face.TextureID);
+ m_log.DebugFormat(
+ "[AVFACTORY]: Missing baked texture {0} ({1}) for {2}, requesting rebake.",
+ face.TextureID, idx, sp.Name);
sp.ControllingClient.SendRebakeAvatarTextures(face.TextureID);
}
@@ -339,24 +339,6 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
return (defonly ? false : true);
}
- ///
- /// Checks for the existance of a baked texture asset and
- /// requests the viewer rebake if the asset is not found
- ///
- ///
- ///
- ///
- private bool CheckBakedTextureAsset(IScenePresence sp, UUID textureID, int idx)
- {
- if (m_scene.AssetService.Get(textureID.ToString()) == null)
- {
- m_log.WarnFormat("[AVFACTORY]: Missing baked texture {0} ({1}) for avatar {2}",
- textureID, idx, sp.Name);
- return false;
- }
- return true;
- }
-
private Dictionary GetBakedTextureFaces(ScenePresence sp)
{
if (sp.IsChildAgent)
--
cgit v1.1