diff options
author | Justin Clark-Casey (justincc) | 2013-03-29 23:10:28 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-03-29 23:10:28 +0000 |
commit | 023faa227ef72a3701dc5fbfc46ab5f831c54953 (patch) | |
tree | 6563150f8c610eb721baa56fce859567713f8c59 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | Fix bug where CHANGED_REGION and/or CHANGED_TELEPORT weren't firing for scrip... (diff) | |
download | opensim-SC-023faa227ef72a3701dc5fbfc46ab5f831c54953.zip opensim-SC-023faa227ef72a3701dc5fbfc46ab5f831c54953.tar.gz opensim-SC-023faa227ef72a3701dc5fbfc46ab5f831c54953.tar.bz2 opensim-SC-023faa227ef72a3701dc5fbfc46ab5f831c54953.tar.xz |
Check viewer 2/3 attachment calls against avatar appearance attachment data rather than actually attached objects
By checking against the grid's Avatar data, we can ignore viewer side attachments but still initiate these calls simulator-side.
Initiating simulator-side is always necessary for version 1 viewers.
This is a further commit to resolve http://opensimulator.org/mantis/view.php?id=6581
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 4930a39..215a689 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -955,15 +955,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
955 | { | 955 | { |
956 | // Viewers which have a current outfit folder will actually rez their own attachments. However, | 956 | // Viewers which have a current outfit folder will actually rez their own attachments. However, |
957 | // viewers without (e.g. v1 viewers) will not, so we still need to make this call. | 957 | // viewers without (e.g. v1 viewers) will not, so we still need to make this call. |
958 | // | ||
959 | // However, we leave a 5 second pause to try and avoid a clash with viewers that are rezzing | ||
960 | // attachments themselves. This should then mean that this call ends up doing nothing. | ||
961 | if (Scene.AttachmentsModule != null) | 958 | if (Scene.AttachmentsModule != null) |
962 | Util.FireAndForget( | 959 | Util.FireAndForget( |
963 | o => | 960 | o => |
964 | { | 961 | { |
965 | if (PresenceType != PresenceType.Npc && Util.FireAndForgetMethod != FireAndForgetMethod.None) | 962 | // if (PresenceType != PresenceType.Npc && Util.FireAndForgetMethod != FireAndForgetMethod.None) |
966 | System.Threading.Thread.Sleep(5000); | 963 | // System.Threading.Thread.Sleep(7000); |
967 | 964 | ||
968 | Scene.AttachmentsModule.RezAttachments(this); | 965 | Scene.AttachmentsModule.RezAttachments(this); |
969 | }); | 966 | }); |