aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-01-05 19:36:48 +0000
committerJustin Clarke Casey2009-01-05 19:36:48 +0000
commite7ac639f3a8a05858df03a8b5fd611826a56ae97 (patch)
tree926414fc9cdb51eeec3239d2c558110f7ea27f8b /OpenSim/Framework
parent* add the required System.xml reference as well (diff)
downloadopensim-SC_OLD-e7ac639f3a8a05858df03a8b5fd611826a56ae97.zip
opensim-SC_OLD-e7ac639f3a8a05858df03a8b5fd611826a56ae97.tar.gz
opensim-SC_OLD-e7ac639f3a8a05858df03a8b5fd611826a56ae97.tar.bz2
opensim-SC_OLD-e7ac639f3a8a05858df03a8b5fd611826a56ae97.tar.xz
* Centralize references to the well known blank texture 5748decc-f629-461c-9a36-a35a221fe21f to a constant in OpenSim.Framework.Util
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/AvatarAppearance.cs6
-rw-r--r--OpenSim/Framework/Communications/Tests/LoginServiceTests.cs5
-rw-r--r--OpenSim/Framework/Util.cs7
3 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs
index 224e9a3..ad95f78 100644
--- a/OpenSim/Framework/AvatarAppearance.cs
+++ b/OpenSim/Framework/AvatarAppearance.cs
@@ -298,8 +298,8 @@ namespace OpenSim.Framework
298 { 298 {
299 Primitive.TextureEntry textu = new Primitive.TextureEntry(new UUID("C228D1CF-4B5D-4BA8-84F4-899A0796AA97")); 299 Primitive.TextureEntry textu = new Primitive.TextureEntry(new UUID("C228D1CF-4B5D-4BA8-84F4-899A0796AA97"));
300 textu.CreateFace(0).TextureID = new UUID("00000000-0000-1111-9999-000000000012"); 300 textu.CreateFace(0).TextureID = new UUID("00000000-0000-1111-9999-000000000012");
301 textu.CreateFace(1).TextureID = new UUID("5748decc-f629-461c-9a36-a35a221fe21f"); 301 textu.CreateFace(1).TextureID = Util.BLANK_TEXTURE_UUID;
302 textu.CreateFace(2).TextureID = new UUID("5748decc-f629-461c-9a36-a35a221fe21f"); 302 textu.CreateFace(2).TextureID = Util.BLANK_TEXTURE_UUID;
303 textu.CreateFace(3).TextureID = new UUID("6522E74D-1660-4E7F-B601-6F48C1659A77"); 303 textu.CreateFace(3).TextureID = new UUID("6522E74D-1660-4E7F-B601-6F48C1659A77");
304 textu.CreateFace(4).TextureID = new UUID("7CA39B4C-BD19-4699-AFF7-F93FD03D3E7B"); 304 textu.CreateFace(4).TextureID = new UUID("7CA39B4C-BD19-4699-AFF7-F93FD03D3E7B");
305 textu.CreateFace(5).TextureID = new UUID("00000000-0000-1111-9999-000000000010"); 305 textu.CreateFace(5).TextureID = new UUID("00000000-0000-1111-9999-000000000010");
@@ -319,8 +319,6 @@ namespace OpenSim.Framework
319 319
320 protected AvatarAppearance(SerializationInfo info, StreamingContext context) 320 protected AvatarAppearance(SerializationInfo info, StreamingContext context)
321 { 321 {
322 //System.Console.WriteLine("AvatarAppearance Deserialize BGN");
323
324 if (info == null) 322 if (info == null)
325 { 323 {
326 throw new ArgumentNullException("info"); 324 throw new ArgumentNullException("info");
diff --git a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
index a78e093..6c18d06 100644
--- a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
@@ -95,9 +95,8 @@ namespace OpenSim.Framework.Communications.Tests
95 responseData["circuit_code"], Is.GreaterThanOrEqualTo(0) & Is.LessThanOrEqualTo(System.Int32.MaxValue)); 95 responseData["circuit_code"], Is.GreaterThanOrEqualTo(0) & Is.LessThanOrEqualTo(System.Int32.MaxValue));
96 96
97 Regex capsSeedPattern 97 Regex capsSeedPattern
98 = new Regex("^http://" 98 = new Regex("^http://" + regionExternalName + ":" + NetworkServersInfo.DefaultHttpListenerPort
99 + regionExternalName 99 + "/CAPS/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{8}0000/$");
100 + ":9000/CAPS/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{8}0000/$");
101 100
102 Assert.That(capsSeedPattern.IsMatch((string)responseData["seed_capability"]), Is.True); 101 Assert.That(capsSeedPattern.IsMatch((string)responseData["seed_capability"]), Is.True);
103 } 102 }
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 4cc7134..396996a 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -51,7 +51,7 @@ namespace OpenSim.Framework
51 /// </summary> 51 /// </summary>
52 public class Util 52 public class Util
53 { 53 {
54 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 54 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
55 55
56 private static uint nextXferID = 5000; 56 private static uint nextXferID = 5000;
57 private static Random randomClass = new Random(); 57 private static Random randomClass = new Random();
@@ -66,6 +66,11 @@ namespace OpenSim.Framework
66 66
67 public static readonly Regex UUIDPattern 67 public static readonly Regex UUIDPattern
68 = new Regex("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"); 68 = new Regex("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$");
69
70 /// <value>
71 /// Well known UUID for the blank texture used in the Linden SL viewer version 1.20 (and hopefully onwards)
72 /// </value>
73 public static UUID BLANK_TEXTURE_UUID = new UUID("5748decc-f629-461c-9a36-a35a221fe21f");
69 74
70 #region Vector Equations 75 #region Vector Equations
71 76