aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index facf72d..a1d087e 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -710,5 +710,17 @@ namespace OpenSim.Region.Environment.Scenes
710 710
711 TriggerScriptChangedEvent(Changed.OWNER); 711 TriggerScriptChangedEvent(Changed.OWNER);
712 } 712 }
713
714 public bool ContainsScripts()
715 {
716 foreach (TaskInventoryItem item in m_taskInventory.Values)
717 {
718 if (item.InvType == 10)
719 {
720 return true;
721 }
722 }
723 return false;
724 }
713 } 725 }
714} 726}