From 0151c773e20a3520f33d0b82fa91b66455ce4a82 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 30 Sep 2015 06:05:28 +0100 Subject: let sp know about scene before anything else on creation --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 175f718..4252bd6 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -986,6 +986,7 @@ namespace OpenSim.Region.Framework.Scenes public ScenePresence( IClientAPI client, Scene world, AvatarAppearance appearance, PresenceType type) { + m_scene = world; AttachmentsSyncLock = new Object(); AllowMovement = true; IsChildAgent = true; @@ -1000,7 +1001,6 @@ namespace OpenSim.Region.Framework.Scenes Firstname = ControllingClient.FirstName; Lastname = ControllingClient.LastName; m_name = String.Format("{0} {1}", Firstname, Lastname); - m_scene = world; m_uuid = client.AgentId; LocalId = m_scene.AllocateLocalId(); -- cgit v1.1