diff --git a/src/TextureFetcher.cs b/src/TextureFetcher.cs index e4bf067..bbe7188 100644 --- a/src/TextureFetcher.cs +++ b/src/TextureFetcher.cs @@ -76,11 +76,23 @@ namespace OpenSim.Modules.TextureFetcher 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) { if (part.ParentGroup.IsAttachment) return; + if (inventoryContainsScripts(part)) + return; + m_log.Info("[" + Name + "] Process part '" + part.Name + "'"); List allTextures = new List();