diff options
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 25 |
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 | } |