diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
5 files changed, 26 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 9807ea5..87c9100 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -316,7 +316,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
316 | /// <param name="remoteClient"></param> | 316 | /// <param name="remoteClient"></param> |
317 | /// <param name="itemID"></param> | 317 | /// <param name="itemID"></param> |
318 | /// <param name="AttachmentPt"></param> | 318 | /// <param name="AttachmentPt"></param> |
319 | /// <returns></returns> | 319 | /// <returns></returns> |
320 | protected UUID ShowAttachInUserInventory( | 320 | protected UUID ShowAttachInUserInventory( |
321 | SceneObjectGroup att, IClientAPI remoteClient, UUID itemID, uint AttachmentPt) | 321 | SceneObjectGroup att, IClientAPI remoteClient, UUID itemID, uint AttachmentPt) |
322 | { | 322 | { |
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index 21ed9dc..45c3f49 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |||
@@ -318,12 +318,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
318 | 318 | ||
319 | UserAccount account = m_Scenes[0].UserAccountService.GetUserAccount(client.Scene.RegionInfo.ScopeID, fromAgentID); | 319 | UserAccount account = m_Scenes[0].UserAccountService.GetUserAccount(client.Scene.RegionInfo.ScopeID, fromAgentID); |
320 | 320 | ||
321 | PresenceInfo presence = null; | 321 | PresenceInfo presence = null; |
322 | PresenceInfo[] presences = PresenceService.GetAgents(new string[] { fid }); | 322 | PresenceInfo[] presences = PresenceService.GetAgents(new string[] { fid }); |
323 | if (presences != null && presences.Length > 0) | 323 | if (presences != null && presences.Length > 0) |
324 | presence = presences[0]; | 324 | presence = presences[0]; |
325 | if (presence != null) | 325 | if (presence != null) |
326 | im.offline = 0; | 326 | im.offline = 0; |
327 | 327 | ||
328 | im.fromAgentID = fromAgentID.Guid; | 328 | im.fromAgentID = fromAgentID.Guid; |
329 | im.fromAgentName = account.FirstName + " " + account.LastName; | 329 | im.fromAgentName = account.FirstName + " " + account.LastName; |
diff --git a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs index e6cab1d..412dbb6 100644 --- a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs +++ b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs | |||
@@ -91,6 +91,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare | |||
91 | m_scene.EventManager.OnMakeRootAgent += EventManager_OnMakeRootAgent; | 91 | m_scene.EventManager.OnMakeRootAgent += EventManager_OnMakeRootAgent; |
92 | m_scene.EventManager.OnSaveNewWindlightProfile += EventManager_OnSaveNewWindlightProfile; | 92 | m_scene.EventManager.OnSaveNewWindlightProfile += EventManager_OnSaveNewWindlightProfile; |
93 | m_scene.EventManager.OnSendNewWindlightProfileTargeted += EventManager_OnSendNewWindlightProfileTargeted; | 93 | m_scene.EventManager.OnSendNewWindlightProfileTargeted += EventManager_OnSendNewWindlightProfileTargeted; |
94 | m_scene.LoadWindlightProfile(); | ||
94 | } | 95 | } |
95 | 96 | ||
96 | InstallCommands(); | 97 | InstallCommands(); |
diff --git a/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs b/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs index 9e6e366..8408bf9 100644 --- a/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs +++ b/OpenSim/Region/CoreModules/World/LegacyMap/MapImageModule.cs | |||
@@ -545,5 +545,10 @@ namespace OpenSim.Region.CoreModules.World.LegacyMap | |||
545 | 545 | ||
546 | return returnpt; | 546 | return returnpt; |
547 | } | 547 | } |
548 | |||
549 | public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height) | ||
550 | { | ||
551 | return null; | ||
552 | } | ||
548 | } | 553 | } |
549 | } | 554 | } |
diff --git a/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs b/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs index 49b4364..803a33a 100644 --- a/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs +++ b/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs | |||
@@ -112,6 +112,19 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap | |||
112 | 112 | ||
113 | public Bitmap CreateMapTile() | 113 | public Bitmap CreateMapTile() |
114 | { | 114 | { |
115 | Vector3 camPos = new Vector3(127.5f, 127.5f, 221.7025033688163f); | ||
116 | Viewport viewport = new Viewport(camPos, -Vector3.UnitZ, 1024f, 0.1f, (int)Constants.RegionSize, (int)Constants.RegionSize, (float)Constants.RegionSize, (float)Constants.RegionSize); | ||
117 | return CreateMapTile(viewport); | ||
118 | } | ||
119 | |||
120 | public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height) | ||
121 | { | ||
122 | Viewport viewport = new Viewport(camPos, camDir, fov, (float)Constants.RegionSize, 0.1f, width, height); | ||
123 | return CreateMapTile(viewport); | ||
124 | } | ||
125 | |||
126 | public Bitmap CreateMapTile(Viewport viewport) | ||
127 | { | ||
115 | bool drawPrimVolume = true; | 128 | bool drawPrimVolume = true; |
116 | bool textureTerrain = true; | 129 | bool textureTerrain = true; |
117 | 130 | ||
@@ -128,9 +141,6 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap | |||
128 | 141 | ||
129 | m_colors.Clear(); | 142 | m_colors.Clear(); |
130 | 143 | ||
131 | Vector3 camPos = new Vector3(127.5f, 127.5f, 221.7025033688163f); | ||
132 | Viewport viewport = new Viewport(camPos, -Vector3.UnitZ, 1024f, 0.1f, (int)Constants.RegionSize, (int)Constants.RegionSize, (float)Constants.RegionSize, (float)Constants.RegionSize); | ||
133 | |||
134 | int width = viewport.Width; | 144 | int width = viewport.Width; |
135 | int height = viewport.Height; | 145 | int height = viewport.Height; |
136 | 146 | ||