From 7110e988155943168c5cf55281f4c57961d1be9a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 31 Mar 2019 23:31:18 +0100 Subject: [PATCH] rez npcs attachments async again --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index cd630b838b..5faa7641dc 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -2259,7 +2259,17 @@ namespace OpenSim.Region.Framework.Scenes if (IsNPC || IsRealLogin(m_teleportFlags)) { if (Scene.AttachmentsModule != null) - Scene.AttachmentsModule.RezAttachments(this); + { + if(IsNPC) + { + Util.FireAndForget(x => + { + Scene.AttachmentsModule.RezAttachments(this); + }); + } + else + Scene.AttachmentsModule.RezAttachments(this); + } } else {