skip object parts with scripts in it.

master
Christopher 2020-06-28 13:37:30 +02:00
parent b112562dfb
commit a4fe69942e
1 changed files with 12 additions and 0 deletions

View File

@ -76,11 +76,23 @@ namespace OpenSim.Modules.TextureFetcher
copyTexturesToInventory(_part); copyTexturesToInventory(_part);
} }
private bool inventoryContainsScripts(SceneObjectPart part)
{
foreach (TaskInventoryItem item in part.Inventory.GetInventoryItems())
if (item.InvType == 10)
return true;
return false;
}
private void copyTexturesToInventory(SceneObjectPart part) private void copyTexturesToInventory(SceneObjectPart part)
{ {
if (part.ParentGroup.IsAttachment) if (part.ParentGroup.IsAttachment)
return; return;
if (inventoryContainsScripts(part))
return;
m_log.Info("[" + Name + "] Process part '" + part.Name + "'"); m_log.Info("[" + Name + "] Process part '" + part.Name + "'");
List<UUID> allTextures = new List<UUID>(); List<UUID> allTextures = new List<UUID>();