dont work on null uuid textures

master
Christopher 2020-06-28 13:58:12 +02:00
parent c8b69f712f
commit c35f8b3f1b
1 changed files with 14 additions and 10 deletions

View File

@ -120,9 +120,12 @@ namespace OpenSim.Modules.TextureFetcher
//Convert texture uuid list to inventar items. //Convert texture uuid list to inventar items.
foreach (UUID texture in allTextures) foreach (UUID texture in allTextures)
{
if (texture != UUID.Zero)
{ {
TaskInventoryItem item = new TaskInventoryItem(); TaskInventoryItem item = new TaskInventoryItem();
item.AssetID = texture; item.AssetID = texture;
item.ItemID = UUID.Random();
item.OwnerID = part.OwnerID; item.OwnerID = part.OwnerID;
item.CurrentPermissions = 581639; item.CurrentPermissions = 581639;
item.Name = "tf-" + texture.ToString(); item.Name = "tf-" + texture.ToString();
@ -132,6 +135,7 @@ namespace OpenSim.Modules.TextureFetcher
item.LastOwnerID = part.OwnerID; item.LastOwnerID = part.OwnerID;
inventoryItems.Add(item); inventoryItems.Add(item);
} }
}
//Check if the item is allready in the inventory and then add it. //Check if the item is allready in the inventory and then add it.
bool updateNeeded = false; bool updateNeeded = false;