dont work on null uuid textures
parent
c8b69f712f
commit
c35f8b3f1b
|
@ -121,16 +121,20 @@ 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)
|
||||||
{
|
{
|
||||||
TaskInventoryItem item = new TaskInventoryItem();
|
if (texture != UUID.Zero)
|
||||||
item.AssetID = texture;
|
{
|
||||||
item.OwnerID = part.OwnerID;
|
TaskInventoryItem item = new TaskInventoryItem();
|
||||||
item.CurrentPermissions = 581639;
|
item.AssetID = texture;
|
||||||
item.Name = "tf-" + texture.ToString();
|
item.ItemID = UUID.Random();
|
||||||
item.Description = "This item was generated by the texture fetcher module.";
|
item.OwnerID = part.OwnerID;
|
||||||
item.OwnerID = part.OwnerID;
|
item.CurrentPermissions = 581639;
|
||||||
item.CreatorID = part.OwnerID;
|
item.Name = "tf-" + texture.ToString();
|
||||||
item.LastOwnerID = part.OwnerID;
|
item.Description = "This item was generated by the texture fetcher module.";
|
||||||
inventoryItems.Add(item);
|
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.
|
//Check if the item is allready in the inventory and then add it.
|
||||||
|
|
Loading…
Reference in New Issue