Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
						commit
						fa992a020c
					
				| 
						 | 
				
			
			@ -3164,16 +3164,25 @@ namespace OpenSim.Region.Framework.Scenes
 | 
			
		|||
        public void SendKillObject(uint localID)
 | 
			
		||||
        {
 | 
			
		||||
            SceneObjectPart part = GetSceneObjectPart(localID);
 | 
			
		||||
            UUID attachedAvatar = UUID.Zero;
 | 
			
		||||
 | 
			
		||||
            if (part != null) // It is a prim
 | 
			
		||||
            {
 | 
			
		||||
                if (!part.ParentGroup.IsDeleted) // Valid
 | 
			
		||||
                {
 | 
			
		||||
                    if (part.ParentGroup.RootPart != part) // Child part
 | 
			
		||||
                        return;
 | 
			
		||||
 | 
			
		||||
                    if (part.ParentGroup.IsAttachment && part.ParentGroup.AttachmentPoint >= 31 && part.ParentGroup.AttachmentPoint <= 38)
 | 
			
		||||
                        attachedAvatar = part.ParentGroup.AttachedAvatar;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            ForEachClient(delegate(IClientAPI client) { client.SendKillObject(m_regionHandle, localID); });
 | 
			
		||||
            ForEachClient(delegate(IClientAPI client)
 | 
			
		||||
            {
 | 
			
		||||
                if (attachedAvatar == UUID.Zero || attachedAvatar == client.AgentId)
 | 
			
		||||
                    client.SendKillObject(m_regionHandle, localID);
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        #endregion
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -117,7 +117,15 @@ namespace OpenSim.Services.AssetService
 | 
			
		|||
                return null;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return m_Database.GetAsset(assetID);
 | 
			
		||||
            try
 | 
			
		||||
            {
 | 
			
		||||
                return m_Database.GetAsset(assetID);
 | 
			
		||||
            }
 | 
			
		||||
            catch (Exception e)
 | 
			
		||||
            {
 | 
			
		||||
                m_log.ErrorFormat("[ASSET SERVICE]: Exception getting asset {0} {1}", assetID, e);
 | 
			
		||||
                return null;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public virtual AssetBase GetCached(string id)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue