From 497c4178850f616103690944838aee940b122302 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 6 Jan 2017 17:33:12 +0000 Subject: [PATCH] add a missing god_date transmition --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 01e0aac608..0c88c78f81 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -1045,7 +1045,6 @@ namespace OpenSim.Region.Framework.Scenes public ScenePresence( IClientAPI client, Scene world, AvatarAppearance appearance, PresenceType type) { - GodController = new GodController(world, this); m_scene = world; AttachmentsSyncLock = new Object(); @@ -1072,8 +1071,12 @@ namespace OpenSim.Region.Framework.Scenes else m_userFlags = 0; + int userlevel = 0; if (account != null) - GodController.UserLevel = account.UserLevel; + userlevel = account.UserLevel; + +// GodController = new GodController(world, this, userlevel); + GodController = new GodController(world, this); // IGroupsModule gm = m_scene.RequestModuleInterface(); // if (gm != null) @@ -4612,6 +4615,7 @@ namespace OpenSim.Region.Framework.Scenes cAgent.UpAxis = CameraUpAxis; cAgent.Far = DrawDistance; + cAgent.GodData = GodController.State(); // Throttles cAgent.Throttles = ControllingClient.GetThrottlesPacked(1);