diff options
author | Melanie | 2011-12-10 00:40:41 +0000 |
---|---|---|
committer | Melanie | 2011-12-10 00:40:41 +0000 |
commit | 3f421837979a1d3d830274c967abc7258cb50687 (patch) | |
tree | 3ae57deca915d7dc89586d103d48c6f6f6fd1d6d /OpenSim/Region/CoreModules/Avatar | |
parent | Merge branch 'master' into careminster (diff) | |
parent | minor: remove a mono compiler warning (diff) | |
download | opensim-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.cs | 22 |
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) |