Mantis#1416. Thank you very much, Melanie for a patch that:
Createa a method to find out if a prim inventory contains scripts0.6.0-stable
parent
61c7130341
commit
e2361548cb
|
@ -710,5 +710,17 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
TriggerScriptChangedEvent(Changed.OWNER);
|
TriggerScriptChangedEvent(Changed.OWNER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool ContainsScripts()
|
||||||
|
{
|
||||||
|
foreach (TaskInventoryItem item in m_taskInventory.Values)
|
||||||
|
{
|
||||||
|
if (item.InvType == 10)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue