refactor: fold CreateSceneViewer() back into ScenePresence constructor
parent
8d29d490a1
commit
49258350e8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue