refactor: fold CreateSceneViewer() back into ScenePresence constructor

bulletsim
Justin Clark-Casey (justincc) 2011-08-18 01:22:01 +01:00
parent 8d29d490a1
commit 49258350e8
1 changed files with 1 additions and 6 deletions

View File

@ -717,7 +717,7 @@ namespace OpenSim.Region.Framework.Scenes
IClientAPI client, Scene world, RegionInfo reginfo, AvatarAppearance appearance, PresenceType type)
{
m_sendCourseLocationsMethod = SendCoarseLocationsDefault;
CreateSceneViewer();
m_sceneViewer = new SceneViewer(this);
m_animator = new ScenePresenceAnimator(this);
PresenceType = type;
m_DrawDistance = world.DefaultDrawDistance;
@ -769,11 +769,6 @@ namespace OpenSim.Region.Framework.Scenes
m_appearance = appearance;
}
private void CreateSceneViewer()
{
m_sceneViewer = new SceneViewer(this);
}
public void RegisterToEvents()
{
m_controllingClient.OnCompleteMovementToRegion += CompleteMovement;