mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
Bring us up to date.
This commit is contained in:
@@ -388,5 +388,18 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
for (int i = 0; i < parts.Length; i++)
|
||||
parts[i].Inventory.ResumeScripts();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if any part in the scene object contains scripts, false otherwise.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool ContainsScripts()
|
||||
{
|
||||
foreach (SceneObjectPart part in Parts)
|
||||
if (part.Inventory.ContainsScripts())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user