refactor: Eliminate redundant CreateSceneViewer call on ScenePresence constructors since this is also done on other called constructors

This commit is contained in:
Justin Clark-Casey (justincc)
2009-11-17 18:44:57 +00:00
parent 710a2afd12
commit 4baac71a5e

View File

@@ -672,15 +672,12 @@ namespace OpenSim.Region.Framework.Scenes
AvatarWearable[] wearables)
: this(client, world, reginfo)
{
CreateSceneViewer();
m_appearance = new AvatarAppearance(m_uuid, wearables, visualParams);
m_appearance = new AvatarAppearance(m_uuid, wearables, visualParams);
}
public ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo, AvatarAppearance appearance)
: this(client, world, reginfo)
{
CreateSceneViewer();
m_appearance = appearance;
}