aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
diff options
context:
space:
mode:
authorMelanie2009-11-26 17:27:03 +0000
committerMelanie2009-11-26 17:27:03 +0000
commit06f41bb0176990d2c8bf5f6077418e4fc3b3d6c6 (patch)
tree7c0a0a90235a988d69482a4c93dad6c8bbf6a5fc /OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
parentRemove the old remoting-type interregion code for prim/script crossing (diff)
parentFix a small bug. Trusted script crossings now work again (diff)
downloadopensim-SC-06f41bb0176990d2c8bf5f6077418e4fc3b3d6c6.zip
opensim-SC-06f41bb0176990d2c8bf5f6077418e4fc3b3d6c6.tar.gz
opensim-SC-06f41bb0176990d2c8bf5f6077418e4fc3b3d6c6.tar.bz2
opensim-SC-06f41bb0176990d2c8bf5f6077418e4fc3b3d6c6.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index 2ef8258..eca8588 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -909,30 +909,5 @@ namespace OpenSim.Region.Framework.Scenes
909 } 909 }
910 return ret; 910 return ret;
911 } 911 }
912
913 public bool CanBeDeleted()
914 {
915 if (!ContainsScripts())
916 return true;
917
918 IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
919
920 if (engines == null) // No engine at all
921 return true;
922
923 foreach (TaskInventoryItem item in m_items.Values)
924 {
925 if (item.InvType == (int)InventoryType.LSL)
926 {
927 foreach (IScriptModule e in engines)
928 {
929 if (!e.CanBeDeleted(item.ItemID))
930 return false;
931 }
932 }
933 }
934
935 return true;
936 }
937 } 912 }
938} 913}