aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/WearableCacheItem.cs
diff options
context:
space:
mode:
authorUbitUmarov2014-08-07 22:47:29 +0100
committerUbitUmarov2014-08-07 22:47:29 +0100
commit7486684436583a4d9a1b800833581b26e83b9c0b (patch)
treec1e4a9caa21c1944c2513d1531ed0144a086f402 /OpenSim/Framework/WearableCacheItem.cs
parentbug (diff)
downloadopensim-SC-7486684436583a4d9a1b800833581b26e83b9c0b.zip
opensim-SC-7486684436583a4d9a1b800833581b26e83b9c0b.tar.gz
opensim-SC-7486684436583a4d9a1b800833581b26e83b9c0b.tar.bz2
opensim-SC-7486684436583a4d9a1b800833581b26e83b9c0b.tar.xz
update the max number of texture faces and wearables to current values.
This should be safe now..
Diffstat (limited to 'OpenSim/Framework/WearableCacheItem.cs')
-rw-r--r--OpenSim/Framework/WearableCacheItem.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Framework/WearableCacheItem.cs b/OpenSim/Framework/WearableCacheItem.cs
index cde2862..a890d3b 100644
--- a/OpenSim/Framework/WearableCacheItem.cs
+++ b/OpenSim/Framework/WearableCacheItem.cs
@@ -43,12 +43,14 @@ namespace OpenSim.Framework
43 43
44 public static WearableCacheItem[] GetDefaultCacheItem() 44 public static WearableCacheItem[] GetDefaultCacheItem()
45 { 45 {
46 int itemmax = 21; 46 int itemmax = AvatarAppearance.TEXTURE_COUNT;
47 WearableCacheItem[] retitems = new WearableCacheItem[itemmax]; 47 WearableCacheItem[] retitems = new WearableCacheItem[itemmax];
48 for (uint i=0;i<itemmax;i++) 48 for (uint i=0;i<itemmax;i++)
49 retitems[i] = new WearableCacheItem() {CacheId = UUID.Zero, TextureID = UUID.Zero, TextureIndex = i}; 49 retitems[i] = new WearableCacheItem() {CacheId = UUID.Zero, TextureID = UUID.Zero, TextureIndex = i};
50 return retitems; 50 return retitems;
51 } 51 }
52
53
52 public static WearableCacheItem[] FromOSD(OSD pInput, IImprovedAssetCache dataCache) 54 public static WearableCacheItem[] FromOSD(OSD pInput, IImprovedAssetCache dataCache)
53 { 55 {
54 List<WearableCacheItem> ret = new List<WearableCacheItem>(); 56 List<WearableCacheItem> ret = new List<WearableCacheItem>();