diff options
author | Melanie | 2011-02-16 02:41:49 +0000 |
---|---|---|
committer | Melanie | 2011-02-16 02:41:49 +0000 |
commit | ccd6e5d07146b8dd033bd1af09594834e87a883b (patch) | |
tree | e7ed9506d70d67c37ac8d40f9620cbaa24747305 | |
parent | Add the country functions in the careminster API (diff) | |
parent | Catch HttpServer exception: mantis #5381 (diff) | |
download | opensim-SC_OLD-ccd6e5d07146b8dd033bd1af09594834e87a883b.zip opensim-SC_OLD-ccd6e5d07146b8dd033bd1af09594834e87a883b.tar.gz opensim-SC_OLD-ccd6e5d07146b8dd033bd1af09594834e87a883b.tar.bz2 opensim-SC_OLD-ccd6e5d07146b8dd033bd1af09594834e87a883b.tar.xz |
Merge branch 'master' into careminster-presence-refactor
-rw-r--r-- | OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/WebUtil.cs | 20 | ||||
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 12 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementCommands.cs | 74 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 40 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IEstateModule.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 2 | ||||
-rw-r--r-- | OpenSim/Services/AssetService/AssetService.cs | 2 | ||||
-rw-r--r-- | bin/HttpServer_OpenSim.dll | bin | 115712 -> 115712 bytes | |||
-rw-r--r-- | bin/HttpServer_OpenSim.pdb | bin | 409088 -> 409088 bytes |
12 files changed, 116 insertions, 42 deletions
diff --git a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs index 7ef0f5f..f37c399 100644 --- a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs +++ b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | |||
@@ -122,9 +122,11 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
122 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + | 122 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + |
123 | Thread.CurrentThread.ManagedThreadId.ToString() + | 123 | Thread.CurrentThread.ManagedThreadId.ToString() + |
124 | ")"); | 124 | ")"); |
125 | |||
125 | m_openSim.PopulateRegionEstateInfo(regionsToLoad[i]); | 126 | m_openSim.PopulateRegionEstateInfo(regionsToLoad[i]); |
126 | m_openSim.CreateRegion(regionsToLoad[i], true, out scene); | 127 | m_openSim.CreateRegion(regionsToLoad[i], true, out scene); |
127 | regionsToLoad[i].EstateSettings.Save(); | 128 | regionsToLoad[i].EstateSettings.Save(); |
129 | |||
128 | if (scene != null) | 130 | if (scene != null) |
129 | { | 131 | { |
130 | m_newRegionCreatedHandler = OnNewRegionCreated; | 132 | m_newRegionCreatedHandler = OnNewRegionCreated; |
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs index 0593341..4f5add9 100644 --- a/OpenSim/Framework/WebUtil.cs +++ b/OpenSim/Framework/WebUtil.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Collections.Specialized; | 31 | using System.Collections.Specialized; |
32 | using System.Globalization; | ||
32 | using System.IO; | 33 | using System.IO; |
33 | using System.Net; | 34 | using System.Net; |
34 | using System.Net.Security; | 35 | using System.Net.Security; |
@@ -557,34 +558,27 @@ namespace OpenSim.Framework | |||
557 | { | 558 | { |
558 | float qx = GetQ(x); | 559 | float qx = GetQ(x); |
559 | float qy = GetQ(y); | 560 | float qy = GetQ(y); |
560 | if (qx < qy) | 561 | return qy.CompareTo(qx); // descending order |
561 | return -1; | ||
562 | if (qx == qy) | ||
563 | return 0; | ||
564 | return 1; | ||
565 | } | 562 | } |
566 | 563 | ||
567 | private float GetQ(Object o) | 564 | private float GetQ(Object o) |
568 | { | 565 | { |
569 | // Example: image/png;q=0.9 | 566 | // Example: image/png;q=0.9 |
570 | 567 | ||
568 | float qvalue = 1F; | ||
571 | if (o is String) | 569 | if (o is String) |
572 | { | 570 | { |
573 | string mime = (string)o; | 571 | string mime = (string)o; |
574 | string[] parts = mime.Split(new char[] { ';' }); | 572 | string[] parts = mime.Split(';'); |
575 | if (parts.Length > 1) | 573 | if (parts.Length > 1) |
576 | { | 574 | { |
577 | string[] kvp = parts[1].Split(new char[] { '=' }); | 575 | string[] kvp = parts[1].Split('='); |
578 | if (kvp.Length == 2 && kvp[0] == "q") | 576 | if (kvp.Length == 2 && kvp[0] == "q") |
579 | { | 577 | float.TryParse(kvp[1], NumberStyles.Number, CultureInfo.InvariantCulture, out qvalue); |
580 | float qvalue = 1F; | ||
581 | float.TryParse(kvp[1], out qvalue); | ||
582 | return qvalue; | ||
583 | } | ||
584 | } | 578 | } |
585 | } | 579 | } |
586 | 580 | ||
587 | return 1F; | 581 | return qvalue; |
588 | } | 582 | } |
589 | } | 583 | } |
590 | 584 | ||
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index b74a392..9960a54 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -877,9 +877,7 @@ namespace OpenSim | |||
877 | /// <summary> | 877 | /// <summary> |
878 | /// Load the estate information for the provided RegionInfo object. | 878 | /// Load the estate information for the provided RegionInfo object. |
879 | /// </summary> | 879 | /// </summary> |
880 | /// <param name="regInfo"> | 880 | /// <param name="regInfo"></param> |
881 | /// A <see cref="RegionInfo"/> | ||
882 | /// </param> | ||
883 | public void PopulateRegionEstateInfo(RegionInfo regInfo) | 881 | public void PopulateRegionEstateInfo(RegionInfo regInfo) |
884 | { | 882 | { |
885 | IEstateDataService estateDataService = EstateDataService; | 883 | IEstateDataService estateDataService = EstateDataService; |
@@ -901,7 +899,13 @@ namespace OpenSim | |||
901 | regInfo.EstateSettings = estateDataService.LoadEstateSettings(regInfo.RegionID, true); | 899 | regInfo.EstateSettings = estateDataService.LoadEstateSettings(regInfo.RegionID, true); |
902 | 900 | ||
903 | regInfo.EstateSettings.EstateName = MainConsole.Instance.CmdPrompt("New estate name", regInfo.EstateSettings.EstateName); | 901 | regInfo.EstateSettings.EstateName = MainConsole.Instance.CmdPrompt("New estate name", regInfo.EstateSettings.EstateName); |
904 | //regInfo.EstateSettings.Save(); | 902 | |
903 | // FIXME: Later on, the scene constructor will reload the estate settings no matter what. | ||
904 | // Therefore, we need to do an initial save here otherwise the new estate name will be reset | ||
905 | // back to the default. The reloading of estate settings by scene could be eliminated if it | ||
906 | // knows that the passed in settings in RegionInfo are already valid. Also, it might be | ||
907 | // possible to eliminate some additional later saves made by callers of this method. | ||
908 | regInfo.EstateSettings.Save(); | ||
905 | break; | 909 | break; |
906 | } | 910 | } |
907 | else | 911 | else |
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index ca29a7c..e8f18e7 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -244,7 +244,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
244 | } | 244 | } |
245 | catch (Exception e) | 245 | catch (Exception e) |
246 | { | 246 | { |
247 | m_log.WarnFormat("[ENTITY TRANSFER MODULE]: Exception on teleport: {0}\n{1}", e.Message, e.StackTrace); | 247 | m_log.WarnFormat("[ENTITY TRANSFER MODULE]: Exception on teleport: {0} {1}", e.Message, e.StackTrace); |
248 | sp.ControllingClient.SendTeleportFailed("Internal error"); | 248 | sp.ControllingClient.SendTeleportFailed("Internal error"); |
249 | } | 249 | } |
250 | } | 250 | } |
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementCommands.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementCommands.cs index 14f5b1e..f6d1a82 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementCommands.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementCommands.cs | |||
@@ -30,21 +30,29 @@ using System.Collections.Generic; | |||
30 | using System.IO; | 30 | using System.IO; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using System.Security; | 32 | using System.Security; |
33 | using System.Text; | ||
33 | using log4net; | 34 | using log4net; |
34 | using Nini.Config; | 35 | using Nini.Config; |
35 | using OpenMetaverse; | 36 | using OpenMetaverse; |
36 | using OpenSim.Framework; | 37 | using OpenSim.Framework; |
38 | using OpenSim.Framework.Console; | ||
39 | using OpenSim.Region.CoreModules.Framework.InterfaceCommander; | ||
37 | using OpenSim.Region.Framework.Interfaces; | 40 | using OpenSim.Region.Framework.Interfaces; |
38 | using OpenSim.Region.Framework.Scenes; | 41 | using OpenSim.Region.Framework.Scenes; |
39 | 42 | ||
40 | namespace OpenSim.Region.CoreModules.World.Estate | 43 | namespace OpenSim.Region.CoreModules.World.Estate |
41 | { | 44 | { |
45 | /// <summary> | ||
46 | /// Estate management console commands. | ||
47 | /// </summary> | ||
42 | public class EstateManagementCommands | 48 | public class EstateManagementCommands |
43 | { | 49 | { |
44 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 50 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
45 | 51 | ||
46 | protected EstateManagementModule m_module; | 52 | protected EstateManagementModule m_module; |
47 | 53 | ||
54 | protected Commander m_commander = new Commander("estate"); | ||
55 | |||
48 | public EstateManagementCommands(EstateManagementModule module) | 56 | public EstateManagementCommands(EstateManagementModule module) |
49 | { | 57 | { |
50 | m_module = module; | 58 | m_module = module; |
@@ -52,20 +60,60 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
52 | 60 | ||
53 | public void Initialise() | 61 | public void Initialise() |
54 | { | 62 | { |
55 | m_module.Scene.AddCommand(this, "set terrain texture", | 63 | m_log.DebugFormat("[ESTATE MODULE]: Setting up estate commands for region {0}", m_module.Scene.RegionInfo.RegionName); |
64 | |||
65 | m_module.Scene.AddCommand(m_module, "set terrain texture", | ||
56 | "set terrain texture <number> <uuid> [<x>] [<y>]", | 66 | "set terrain texture <number> <uuid> [<x>] [<y>]", |
57 | "Sets the terrain <number> to <uuid>, if <x> or <y> are specified, it will only " + | 67 | "Sets the terrain <number> to <uuid>, if <x> or <y> are specified, it will only " + |
58 | "set it on regions with a matching coordinate. Specify -1 in <x> or <y> to wildcard" + | 68 | "set it on regions with a matching coordinate. Specify -1 in <x> or <y> to wildcard" + |
59 | " that coordinate.", | 69 | " that coordinate.", |
60 | consoleSetTerrainTexture); | 70 | consoleSetTerrainTexture); |
61 | 71 | ||
62 | m_module.Scene.AddCommand(this, "set terrain heights", | 72 | m_module.Scene.AddCommand(m_module, "set terrain heights", |
63 | "set terrain heights <corner> <min> <max> [<x>] [<y>]", | 73 | "set terrain heights <corner> <min> <max> [<x>] [<y>]", |
64 | "Sets the terrain texture heights on corner #<corner> to <min>/<max>, if <x> or <y> are specified, it will only " + | 74 | "Sets the terrain texture heights on corner #<corner> to <min>/<max>, if <x> or <y> are specified, it will only " + |
65 | "set it on regions with a matching coordinate. Specify -1 in <x> or <y> to wildcard" + | 75 | "set it on regions with a matching coordinate. Specify -1 in <x> or <y> to wildcard" + |
66 | " that coordinate. Corner # SW = 0, NW = 1, SE = 2, NE = 3.", | 76 | " that coordinate. Corner # SW = 0, NW = 1, SE = 2, NE = 3.", |
67 | consoleSetTerrainHeights); | 77 | consoleSetTerrainHeights); |
68 | } | 78 | |
79 | Command showCommand | ||
80 | = new Command("show", CommandIntentions.COMMAND_STATISTICAL, ShowEstatesCommand, "Shows all estates on the simulator."); | ||
81 | |||
82 | m_commander.RegisterCommand("show", showCommand); | ||
83 | |||
84 | m_module.Scene.RegisterModuleCommander(m_commander); | ||
85 | |||
86 | m_module.Scene.EventManager.OnPluginConsole += EventManagerOnPluginConsole; | ||
87 | } | ||
88 | |||
89 | public void Close() | ||
90 | { | ||
91 | m_module.Scene.EventManager.OnPluginConsole -= EventManagerOnPluginConsole; | ||
92 | m_module.Scene.UnregisterModuleCommander(m_commander.Name); | ||
93 | } | ||
94 | |||
95 | /// <summary> | ||
96 | /// Processes commandline input. Do not call directly. | ||
97 | /// </summary> | ||
98 | /// <param name="args">Commandline arguments</param> | ||
99 | protected void EventManagerOnPluginConsole(string[] args) | ||
100 | { | ||
101 | if (args[0] == "estate") | ||
102 | { | ||
103 | if (args.Length == 1) | ||
104 | { | ||
105 | m_commander.ProcessConsoleCommand("help", new string[0]); | ||
106 | return; | ||
107 | } | ||
108 | |||
109 | string[] tmpArgs = new string[args.Length - 2]; | ||
110 | int i; | ||
111 | for (i = 2; i < args.Length; i++) | ||
112 | tmpArgs[i - 2] = args[i]; | ||
113 | |||
114 | m_commander.ProcessConsoleCommand(args[1], tmpArgs); | ||
115 | } | ||
116 | } | ||
69 | 117 | ||
70 | protected void consoleSetTerrainTexture(string module, string[] args) | 118 | protected void consoleSetTerrainTexture(string module, string[] args) |
71 | { | 119 | { |
@@ -152,5 +200,25 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
152 | } | 200 | } |
153 | } | 201 | } |
154 | } | 202 | } |
203 | |||
204 | protected void ShowEstatesCommand(Object[] args) | ||
205 | { | ||
206 | StringBuilder report = new StringBuilder(); | ||
207 | RegionInfo ri = m_module.Scene.RegionInfo; | ||
208 | EstateSettings es = ri.EstateSettings; | ||
209 | |||
210 | report.AppendFormat("Estate information for region {0}\n", ri.RegionName); | ||
211 | report.AppendFormat( | ||
212 | "{0,-20} {1,-7} {2,-20}\n", | ||
213 | "Estate Name", | ||
214 | "ID", | ||
215 | "Owner"); | ||
216 | |||
217 | report.AppendFormat( | ||
218 | "{0,-20} {1,-7} {2,-20}\n", | ||
219 | es.EstateName, es.EstateID, m_module.UserManager.GetUserName(es.EstateOwner)); | ||
220 | |||
221 | MainConsole.Instance.Output(report.ToString()); | ||
222 | } | ||
155 | } | 223 | } |
156 | } \ No newline at end of file | 224 | } \ No newline at end of file |
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 0652ca7..34d0cfc 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -32,6 +32,7 @@ using System.Reflection; | |||
32 | using System.Security; | 32 | using System.Security; |
33 | using System.Timers; | 33 | using System.Timers; |
34 | using log4net; | 34 | using log4net; |
35 | using Mono.Addins; | ||
35 | using Nini.Config; | 36 | using Nini.Config; |
36 | using OpenMetaverse; | 37 | using OpenMetaverse; |
37 | using OpenSim.Framework; | 38 | using OpenSim.Framework; |
@@ -40,7 +41,8 @@ using OpenSim.Region.Framework.Scenes; | |||
40 | 41 | ||
41 | namespace OpenSim.Region.CoreModules.World.Estate | 42 | namespace OpenSim.Region.CoreModules.World.Estate |
42 | { | 43 | { |
43 | public class EstateManagementModule : IEstateModule | 44 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "EstateManagementModule")] |
45 | public class EstateManagementModule : IEstateModule, INonSharedRegionModule | ||
44 | { | 46 | { |
45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 47 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
46 | 48 | ||
@@ -48,8 +50,9 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
48 | 50 | ||
49 | private Timer m_regionChangeTimer = new Timer(); | 51 | private Timer m_regionChangeTimer = new Timer(); |
50 | public Scene Scene { get; private set; } | 52 | public Scene Scene { get; private set; } |
53 | public IUserManagement UserManager { get; private set; } | ||
51 | 54 | ||
52 | protected EstateManagementCommands m_commands; | 55 | protected EstateManagementCommands m_commands; |
53 | 56 | ||
54 | private EstateTerrainXferHandler TerrainUploader; | 57 | private EstateTerrainXferHandler TerrainUploader; |
55 | 58 | ||
@@ -909,9 +912,15 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
909 | #endregion | 912 | #endregion |
910 | 913 | ||
911 | #region IRegionModule Members | 914 | #region IRegionModule Members |
915 | |||
916 | public string Name { get { return "EstateManagementModule"; } } | ||
917 | |||
918 | public Type ReplaceableInterface { get { return null; } } | ||
912 | 919 | ||
913 | public void Initialise(Scene scene, IConfigSource source) | 920 | public void Initialise(IConfigSource source) {} |
914 | { | 921 | |
922 | public void AddRegion(Scene scene) | ||
923 | { | ||
915 | m_regionChangeTimer.AutoReset = false; | 924 | m_regionChangeTimer.AutoReset = false; |
916 | m_regionChangeTimer.Interval = 2000; | 925 | m_regionChangeTimer.Interval = 2000; |
917 | m_regionChangeTimer.Elapsed += RaiseRegionInfoChange; | 926 | m_regionChangeTimer.Elapsed += RaiseRegionInfoChange; |
@@ -924,26 +933,21 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
924 | m_commands = new EstateManagementCommands(this); | 933 | m_commands = new EstateManagementCommands(this); |
925 | m_commands.Initialise(); | 934 | m_commands.Initialise(); |
926 | } | 935 | } |
927 | 936 | ||
928 | public void PostInitialise() | 937 | public void RemoveRegion(Scene scene) {} |
938 | |||
939 | public void RegionLoaded(Scene scene) | ||
929 | { | 940 | { |
930 | // Sets up the sun module based no the saved Estate and Region Settings | 941 | // Sets up the sun module based no the saved Estate and Region Settings |
931 | // DO NOT REMOVE or the sun will stop working | 942 | // DO NOT REMOVE or the sun will stop working |
932 | Scene.TriggerEstateSunUpdate(); | 943 | scene.TriggerEstateSunUpdate(); |
933 | } | 944 | |
934 | 945 | UserManager = scene.RequestModuleInterface<IUserManagement>(); | |
935 | public void Close() | ||
936 | { | ||
937 | } | ||
938 | |||
939 | public string Name | ||
940 | { | ||
941 | get { return "EstateManagementModule"; } | ||
942 | } | 946 | } |
943 | 947 | ||
944 | public bool IsSharedModule | 948 | public void Close() |
945 | { | 949 | { |
946 | get { return false; } | 950 | m_commands.Close(); |
947 | } | 951 | } |
948 | 952 | ||
949 | #endregion | 953 | #endregion |
diff --git a/OpenSim/Region/Framework/Interfaces/IEstateModule.cs b/OpenSim/Region/Framework/Interfaces/IEstateModule.cs index c850f7f..721f0ee 100644 --- a/OpenSim/Region/Framework/Interfaces/IEstateModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IEstateModule.cs | |||
@@ -32,7 +32,7 @@ namespace OpenSim.Region.Framework.Interfaces | |||
32 | public delegate void ChangeDelegate(UUID regionID); | 32 | public delegate void ChangeDelegate(UUID regionID); |
33 | public delegate void MessageDelegate(UUID regionID, UUID fromID, string fromName, string message); | 33 | public delegate void MessageDelegate(UUID regionID, UUID fromID, string fromName, string message); |
34 | 34 | ||
35 | public interface IEstateModule : IRegionModule | 35 | public interface IEstateModule |
36 | { | 36 | { |
37 | event ChangeDelegate OnRegionInfoChange; | 37 | event ChangeDelegate OnRegionInfoChange; |
38 | event ChangeDelegate OnEstateInfoChange; | 38 | event ChangeDelegate OnEstateInfoChange; |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index d4f3dfe..9b9f280 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2142,7 +2142,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2142 | { | 2142 | { |
2143 | Quaternion newRot; | 2143 | Quaternion newRot; |
2144 | 2144 | ||
2145 | if (this.LinkNum < 2) //KF Single or root prim | 2145 | if (this.LinkNum == 0 || this.LinkNum == 1) |
2146 | { | 2146 | { |
2147 | newRot = RotationOffset; | 2147 | newRot = RotationOffset; |
2148 | } | 2148 | } |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 4d299d6..c2e5c13 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -711,6 +711,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
711 | // and convert the regionName to the target region | 711 | // and convert the regionName to the target region |
712 | if (regionName.Contains(".") && regionName.Contains(":")) | 712 | if (regionName.Contains(".") && regionName.Contains(":")) |
713 | { | 713 | { |
714 | // Even though we use none of the results, we need to perform this call because it appears | ||
715 | // to have some the side effect of setting up hypergrid teleport locations. | ||
714 | World.GridService.GetRegionsByName(World.RegionInfo.ScopeID, regionName, 1); | 716 | World.GridService.GetRegionsByName(World.RegionInfo.ScopeID, regionName, 1); |
715 | // List<GridRegion> regions = World.GridService.GetRegionsByName(World.RegionInfo.ScopeID, regionName, 1); | 717 | // List<GridRegion> regions = World.GridService.GetRegionsByName(World.RegionInfo.ScopeID, regionName, 1); |
716 | 718 | ||
diff --git a/OpenSim/Services/AssetService/AssetService.cs b/OpenSim/Services/AssetService/AssetService.cs index 81ef225..c29bce8 100644 --- a/OpenSim/Services/AssetService/AssetService.cs +++ b/OpenSim/Services/AssetService/AssetService.cs | |||
@@ -93,7 +93,7 @@ namespace OpenSim.Services.AssetService | |||
93 | 93 | ||
94 | if (!UUID.TryParse(id, out assetID)) | 94 | if (!UUID.TryParse(id, out assetID)) |
95 | { | 95 | { |
96 | m_log.WarnFormat("[ASSET SERVICE]: Could not parse requested sset id {0}", id); | 96 | m_log.WarnFormat("[ASSET SERVICE]: Could not parse requested asset id {0}", id); |
97 | return null; | 97 | return null; |
98 | } | 98 | } |
99 | 99 | ||
diff --git a/bin/HttpServer_OpenSim.dll b/bin/HttpServer_OpenSim.dll index d7503a0..95ea5dd 100644 --- a/bin/HttpServer_OpenSim.dll +++ b/bin/HttpServer_OpenSim.dll | |||
Binary files differ | |||
diff --git a/bin/HttpServer_OpenSim.pdb b/bin/HttpServer_OpenSim.pdb index 4151588..b6b77f7 100644 --- a/bin/HttpServer_OpenSim.pdb +++ b/bin/HttpServer_OpenSim.pdb | |||
Binary files differ | |||