diff options
author | UbitUmarov | 2019-03-31 23:31:18 +0100 |
---|---|---|
committer | UbitUmarov | 2019-03-31 23:31:18 +0100 |
commit | 7110e988155943168c5cf55281f4c57961d1be9a (patch) | |
tree | 9c970615790035f519539dcc7f2db7d24ece1661 | |
parent | Yengine attachment drop, do set attachment ready event (diff) | |
download | opensim-SC-7110e988155943168c5cf55281f4c57961d1be9a.zip opensim-SC-7110e988155943168c5cf55281f4c57961d1be9a.tar.gz opensim-SC-7110e988155943168c5cf55281f4c57961d1be9a.tar.bz2 opensim-SC-7110e988155943168c5cf55281f4c57961d1be9a.tar.xz |
rez npcs attachments async again
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index cd630b8..5faa764 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2259,7 +2259,17 @@ namespace OpenSim.Region.Framework.Scenes | |||
2259 | if (IsNPC || IsRealLogin(m_teleportFlags)) | 2259 | if (IsNPC || IsRealLogin(m_teleportFlags)) |
2260 | { | 2260 | { |
2261 | if (Scene.AttachmentsModule != null) | 2261 | if (Scene.AttachmentsModule != null) |
2262 | Scene.AttachmentsModule.RezAttachments(this); | 2262 | { |
2263 | if(IsNPC) | ||
2264 | { | ||
2265 | Util.FireAndForget(x => | ||
2266 | { | ||
2267 | Scene.AttachmentsModule.RezAttachments(this); | ||
2268 | }); | ||
2269 | } | ||
2270 | else | ||
2271 | Scene.AttachmentsModule.RezAttachments(this); | ||
2272 | } | ||
2263 | } | 2273 | } |
2264 | else | 2274 | else |
2265 | { | 2275 | { |