dont self osDie attachments

melanie
UbitUmarov 2016-12-14 16:31:39 +00:00
parent 553b326fb2
commit 3056926403
1 changed files with 5 additions and 1 deletions

View File

@ -1897,7 +1897,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// harakiri check
if(objUUID == UUID.Zero)
throw new SelfDeleteException();
{
if (!m_host.ParentGroup.IsAttachment)
throw new SelfDeleteException();
return;
}
SceneObjectGroup sceneOG = World.GetSceneObjectGroup(objUUID);