aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar
diff options
context:
space:
mode:
authorMelanie2011-12-10 00:40:41 +0000
committerMelanie2011-12-10 00:40:41 +0000
commit3f421837979a1d3d830274c967abc7258cb50687 (patch)
tree3ae57deca915d7dc89586d103d48c6f6f6fd1d6d /OpenSim/Region/CoreModules/Avatar
parentMerge branch 'master' into careminster (diff)
parentminor: remove a mono compiler warning (diff)
downloadopensim-SC_OLD-3f421837979a1d3d830274c967abc7258cb50687.zip
opensim-SC_OLD-3f421837979a1d3d830274c967abc7258cb50687.tar.gz
opensim-SC_OLD-3f421837979a1d3d830274c967abc7258cb50687.tar.bz2
opensim-SC_OLD-3f421837979a1d3d830274c967abc7258cb50687.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs22
1 files changed, 1 insertions, 21 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
index d866636..2efb269 100644
--- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
@@ -320,10 +320,8 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
320 320
321 defonly = false; // found a non-default texture reference 321 defonly = false; // found a non-default texture reference
322 322
323 if (!CheckBakedTextureAsset(sp, face.TextureID, idx)) 323 if (m_scene.AssetService.Get(face.TextureID.ToString()) == null)
324 { 324 {
325 // the asset didn't exist if we are only checking, then we found a bad
326 // one and we're done otherwise, ask for a rebake
327 if (checkonly) 325 if (checkonly)
328 return false; 326 return false;
329 327
@@ -337,24 +335,6 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
337 return (defonly ? false : true); 335 return (defonly ? false : true);
338 } 336 }
339 337
340 /// <summary>
341 /// Checks for the existance of a baked texture asset and
342 /// requests the viewer rebake if the asset is not found
343 /// </summary>
344 /// <param name="sp"></param>
345 /// <param name="textureID"></param>
346 /// <param name="idx"></param>
347 private bool CheckBakedTextureAsset(IScenePresence sp, UUID textureID, int idx)
348 {
349 if (m_scene.AssetService.Get(textureID.ToString()) == null)
350 {
351 m_log.InfoFormat("[AVFACTORY]: Missing baked texture {0} ({1}) for avatar {2}",
352 textureID, idx, sp.Name);
353 return false;
354 }
355 return true;
356 }
357
358 private Dictionary<BakeType, Primitive.TextureEntryFace> GetBakedTextureFaces(ScenePresence sp) 338 private Dictionary<BakeType, Primitive.TextureEntryFace> GetBakedTextureFaces(ScenePresence sp)
359 { 339 {
360 if (sp.IsChildAgent) 340 if (sp.IsChildAgent)