mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
work around some 'tests' errors: test for null cacheItems
This commit is contained in:
@@ -358,6 +358,9 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||
// called on textures update
|
||||
public bool UpdateBakedTextureCache(IScenePresence sp, WearableCacheItem[] cacheItems)
|
||||
{
|
||||
if(cacheItems == null)
|
||||
return false;
|
||||
|
||||
// npcs dont have baked cache
|
||||
if (((ScenePresence)sp).isNPC)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user