From 9e20318667b93a485aeb637a60756c0606d2db4c Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 12 Jul 2008 13:42:32 +0000 Subject: Patch #9145 (Mantis #1723) Allows direct viewing of library scripts from inventory again --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ClientStack/LindenUDP') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 7f95ddd..fa3d9e1 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -5159,7 +5159,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP InventoryItemBase assetRequestItem = userInfo.RootFolder.FindItem(itemID); if(assetRequestItem == null) - return; + { + assetRequestItem = ((Scene)m_scene).CommsManager.UserProfileCacheService.libraryRoot.FindItem(itemID); + if(assetRequestItem == null) + return; + } if((assetRequestItem.CurrentPermissions & ((uint)PermissionMask.Modify| (uint)PermissionMask.Copy | (uint)PermissionMask.Transfer)) != ((uint)PermissionMask.Modify| (uint)PermissionMask.Copy | (uint)PermissionMask.Transfer)) break; -- cgit v1.1