dont work on null uuid textures

master
Christopher 2020-06-28 13:58:12 +02:00
rodič c8b69f712f
revize c35f8b3f1b
1 změnil soubory, kde provedl 14 přidání a 10 odebrání

Zobrazit soubor

@ -121,16 +121,20 @@ namespace OpenSim.Modules.TextureFetcher
//Convert texture uuid list to inventar items.
foreach (UUID texture in allTextures)
{
TaskInventoryItem item = new TaskInventoryItem();
item.AssetID = texture;
item.OwnerID = part.OwnerID;
item.CurrentPermissions = 581639;
item.Name = "tf-" + texture.ToString();
item.Description = "This item was generated by the texture fetcher module.";
item.OwnerID = part.OwnerID;
item.CreatorID = part.OwnerID;
item.LastOwnerID = part.OwnerID;
inventoryItems.Add(item);
if (texture != UUID.Zero)
{
TaskInventoryItem item = new TaskInventoryItem();
item.AssetID = texture;
item.ItemID = UUID.Random();
item.OwnerID = part.OwnerID;
item.CurrentPermissions = 581639;
item.Name = "tf-" + texture.ToString();
item.Description = "This item was generated by the texture fetcher module.";
item.OwnerID = part.OwnerID;
item.CreatorID = part.OwnerID;
item.LastOwnerID = part.OwnerID;
inventoryItems.Add(item);
}
}
//Check if the item is allready in the inventory and then add it.