mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Remove the RestorePresences functions (which don't seem to be doing
anything) and clean up the code in AddNewClient (so Appearance only gets assigned once, not three times).
This commit is contained in:
@@ -73,7 +73,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
protected List<ScenePresence> m_scenePresenceArray = new List<ScenePresence>();
|
||||
|
||||
protected internal EntityManager Entities = new EntityManager();
|
||||
protected internal Dictionary<UUID, ScenePresence> RestorePresences = new Dictionary<UUID, ScenePresence>();
|
||||
|
||||
protected RegionInfo m_regInfo;
|
||||
protected Scene m_parentScene;
|
||||
@@ -564,8 +563,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
ScenePresence newAvatar = null;
|
||||
|
||||
// ScenePresence always defaults to child agent
|
||||
newAvatar = new ScenePresence(client, m_parentScene, m_regInfo, appearance);
|
||||
newAvatar.IsChildAgent = true;
|
||||
|
||||
AddScenePresence(newAvatar);
|
||||
|
||||
@@ -578,6 +577,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <param name="presence"></param>
|
||||
protected internal void AddScenePresence(ScenePresence presence)
|
||||
{
|
||||
// Always a child when added to the scene
|
||||
bool child = presence.IsChildAgent;
|
||||
|
||||
if (child)
|
||||
|
||||
Reference in New Issue
Block a user