diff options
author | Justin Clark-Casey (justincc) | 2010-05-28 17:58:51 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-05-28 17:58:51 +0100 |
commit | 877fe774ef718c96c65d9e56c1229338f94c78cb (patch) | |
tree | 2745f9bffda9ad05b31f2741a2fc69a139bd8169 /OpenSim/Region | |
parent | remove redundant ScenePresence.QueuePartForUpdate() - every place in the code... (diff) | |
download | opensim-SC_OLD-877fe774ef718c96c65d9e56c1229338f94c78cb.zip opensim-SC_OLD-877fe774ef718c96c65d9e56c1229338f94c78cb.tar.gz opensim-SC_OLD-877fe774ef718c96c65d9e56c1229338f94c78cb.tar.bz2 opensim-SC_OLD-877fe774ef718c96c65d9e56c1229338f94c78cb.tar.xz |
Simplify AddFullUpdateToAvatars()/AddPartialUpdateToAvatars() by calling the object's corresponding single avatar update method, rather than calling the sceneviewer directly
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 2357c6b..b36b9bf 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -1278,10 +1278,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
1278 | { | 1278 | { |
1279 | m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence avatar) | 1279 | m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence avatar) |
1280 | { | 1280 | { |
1281 | avatar.SceneViewer.QueuePartForUpdate(this); | 1281 | AddFullUpdateToAvatar(avatar); |
1282 | }); | 1282 | }); |
1283 | } | 1283 | } |
1284 | 1284 | ||
1285 | /// <summary> | ||
1286 | /// Tell the scene presence that it should send updates for this part to its client | ||
1287 | /// </summary> | ||
1285 | public void AddFullUpdateToAvatar(ScenePresence presence) | 1288 | public void AddFullUpdateToAvatar(ScenePresence presence) |
1286 | { | 1289 | { |
1287 | presence.SceneViewer.QueuePartForUpdate(this); | 1290 | presence.SceneViewer.QueuePartForUpdate(this); |
@@ -1302,7 +1305,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1302 | { | 1305 | { |
1303 | m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence avatar) | 1306 | m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence avatar) |
1304 | { | 1307 | { |
1305 | avatar.SceneViewer.QueuePartForUpdate(this); | 1308 | AddTerseUpdateToAvatar(avatar); |
1306 | }); | 1309 | }); |
1307 | } | 1310 | } |
1308 | 1311 | ||