Mantis#1416. Thank you very much, Melanie for a patch that:

Createa a method to find out if a prim inventory contains scripts
0.6.0-stable
Charles Krinke 2008-05-29 19:09:21 +00:00
parent 61c7130341
commit e2361548cb
1 changed files with 12 additions and 0 deletions

View File

@ -710,5 +710,17 @@ namespace OpenSim.Region.Environment.Scenes
TriggerScriptChangedEvent(Changed.OWNER);
}
public bool ContainsScripts()
{
foreach (TaskInventoryItem item in m_taskInventory.Values)
{
if (item.InvType == 10)
{
return true;
}
}
return false;
}
}
}