From 3056926403fb073d26ba11b3ebbcbd424a948dbf Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 14 Dec 2016 16:31:39 +0000 Subject: [PATCH] dont self osDie attachments --- .../ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 87fe2874cf..c83682ece5 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -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);