Remove the m_Viewer variable and make the property a shortcut to the
proper field in AgentCircuitData insteadslimupdates2
parent
ad2039a8c4
commit
2b48ed60ec
|
@ -2651,10 +2651,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
ScenePresence sp = CreateAndAddScenePresence(client);
|
ScenePresence sp = CreateAndAddScenePresence(client);
|
||||||
if (aCircuit != null)
|
if (aCircuit != null)
|
||||||
{
|
|
||||||
sp.Appearance = aCircuit.Appearance;
|
sp.Appearance = aCircuit.Appearance;
|
||||||
sp.Viewer = aCircuit.Viewer;
|
|
||||||
}
|
|
||||||
|
|
||||||
// HERE!!! Do the initial attachments right here
|
// HERE!!! Do the initial attachments right here
|
||||||
// first agent upon login is a root agent by design.
|
// first agent upon login is a root agent by design.
|
||||||
|
|
|
@ -218,8 +218,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
private bool m_followCamAuto;
|
private bool m_followCamAuto;
|
||||||
|
|
||||||
private int m_movementUpdateCount;
|
private int m_movementUpdateCount;
|
||||||
private string m_Viewer = String.Empty;
|
|
||||||
|
|
||||||
private const int NumMovementsBetweenRayCast = 5;
|
private const int NumMovementsBetweenRayCast = 5;
|
||||||
|
|
||||||
private bool CameraConstraintActive;
|
private bool CameraConstraintActive;
|
||||||
|
@ -654,8 +652,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
public string Viewer
|
public string Viewer
|
||||||
{
|
{
|
||||||
get { return m_Viewer; }
|
get { return m_scene.AuthenticateHandler.GetAgentCircuitData(ControllingClient.CircuitCode).Viewer; }
|
||||||
set { m_Viewer = value; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in New Issue