aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorCharles Krinke2008-05-29 19:09:21 +0000
committerCharles Krinke2008-05-29 19:09:21 +0000
commite2361548cb8255211670fb528d776e7bf7a539f9 (patch)
tree50319bdfb2eab56c6d119522cc08e4f37f654450 /OpenSim/Region/Environment/Scenes
parent* Ruling out another potential cause of zombie-ism (diff)
downloadopensim-SC-e2361548cb8255211670fb528d776e7bf7a539f9.zip
opensim-SC-e2361548cb8255211670fb528d776e7bf7a539f9.tar.gz
opensim-SC-e2361548cb8255211670fb528d776e7bf7a539f9.tar.bz2
opensim-SC-e2361548cb8255211670fb528d776e7bf7a539f9.tar.xz
Mantis#1416. Thank you very much, Melanie for a patch that:
Createa a method to find out if a prim inventory contains scripts
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-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}