mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
refactor: fold CreateSceneViewer() back into ScenePresence constructor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user