work around some 'tests' errors: test for null cacheItems

LSLKeyTest
UbitUmarov 2015-11-17 03:00:27 +00:00
parent 4660c3076c
commit 8567ef3c40
1 changed files with 3 additions and 0 deletions

View File

@ -358,6 +358,9 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
// called on textures update // called on textures update
public bool UpdateBakedTextureCache(IScenePresence sp, WearableCacheItem[] cacheItems) public bool UpdateBakedTextureCache(IScenePresence sp, WearableCacheItem[] cacheItems)
{ {
if(cacheItems == null)
return false;
// npcs dont have baked cache // npcs dont have baked cache
if (((ScenePresence)sp).isNPC) if (((ScenePresence)sp).isNPC)
return true; return true;