let sp know about scene before anything else on creation
parent
5b7a3c703d
commit
0151c773e2
|
@ -986,6 +986,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public ScenePresence(
|
public ScenePresence(
|
||||||
IClientAPI client, Scene world, AvatarAppearance appearance, PresenceType type)
|
IClientAPI client, Scene world, AvatarAppearance appearance, PresenceType type)
|
||||||
{
|
{
|
||||||
|
m_scene = world;
|
||||||
AttachmentsSyncLock = new Object();
|
AttachmentsSyncLock = new Object();
|
||||||
AllowMovement = true;
|
AllowMovement = true;
|
||||||
IsChildAgent = true;
|
IsChildAgent = true;
|
||||||
|
@ -1000,7 +1001,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
Firstname = ControllingClient.FirstName;
|
Firstname = ControllingClient.FirstName;
|
||||||
Lastname = ControllingClient.LastName;
|
Lastname = ControllingClient.LastName;
|
||||||
m_name = String.Format("{0} {1}", Firstname, Lastname);
|
m_name = String.Format("{0} {1}", Firstname, Lastname);
|
||||||
m_scene = world;
|
|
||||||
m_uuid = client.AgentId;
|
m_uuid = client.AgentId;
|
||||||
LocalId = m_scene.AllocateLocalId();
|
LocalId = m_scene.AllocateLocalId();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue