skip object parts with scripts in it.
parent
b112562dfb
commit
a4fe69942e
|
@ -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>();
|
||||||
|
|
Loading…
Reference in New Issue