mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Simplify AddFullUpdateToAvatars()/AddPartialUpdateToAvatars() by calling the object's corresponding single avatar update method, rather than calling the sceneviewer directly
This commit is contained in:
@@ -1278,10 +1278,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence avatar)
|
||||
{
|
||||
avatar.SceneViewer.QueuePartForUpdate(this);
|
||||
AddFullUpdateToAvatar(avatar);
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tell the scene presence that it should send updates for this part to its client
|
||||
/// </summary>
|
||||
public void AddFullUpdateToAvatar(ScenePresence presence)
|
||||
{
|
||||
presence.SceneViewer.QueuePartForUpdate(this);
|
||||
@@ -1302,7 +1305,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence avatar)
|
||||
{
|
||||
avatar.SceneViewer.QueuePartForUpdate(this);
|
||||
AddTerseUpdateToAvatar(avatar);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user