LIBOMV-576 Merged ClientHelpers and Helpers classes, ClientHelpers methods can once again be directly accessed through the static Helpers class.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3130 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -328,7 +328,7 @@ namespace PrimWorkshop
|
||||
textures = 0;
|
||||
|
||||
// Write the LLSD to the hard drive in XML format
|
||||
string output = OSDParser.SerializeLLSDXmlString(ClientHelpers.PrimListToOSD(primList));
|
||||
string output = OSDParser.SerializeLLSDXmlString(Helpers.PrimListToOSD(primList));
|
||||
try
|
||||
{
|
||||
// Create a temporary directory
|
||||
@@ -499,7 +499,7 @@ namespace PrimWorkshop
|
||||
// Decode the .prims file
|
||||
string raw = File.ReadAllText(primFile);
|
||||
OSD osd = OSDParser.DeserializeLLSDXml(raw);
|
||||
return ClientHelpers.OSDToPrimList(osd);
|
||||
return Helpers.OSDToPrimList(osd);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -275,7 +275,7 @@ namespace PrimWorkshop
|
||||
|
||||
if (osd != null && osd.Type == OSDType.Map)
|
||||
{
|
||||
List<Primitive> primList = ClientHelpers.OSDToPrimList(osd);
|
||||
List<Primitive> primList = Helpers.OSDToPrimList(osd);
|
||||
Prims = new List<FacetedMesh>(primList.Count);
|
||||
|
||||
for (int i = 0; i < primList.Count; i++)
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace OpenMetaverse.TestClient
|
||||
Logger.Log(uuid.ToString(), Helpers.LogLevel.Warning, Client);
|
||||
}
|
||||
|
||||
string output = OSDParser.SerializeLLSDXmlString(ClientHelpers.PrimListToOSD(prims));
|
||||
string output = OSDParser.SerializeLLSDXmlString(Helpers.PrimListToOSD(prims));
|
||||
try { File.WriteAllText(file, output); }
|
||||
catch (Exception e) { return e.Message; }
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace OpenMetaverse.TestClient
|
||||
try { xml = File.ReadAllText(filename); }
|
||||
catch (Exception e) { return e.Message; }
|
||||
|
||||
try { prims = ClientHelpers.OSDToPrimList(OSDParser.DeserializeLLSDXml(xml)); }
|
||||
try { prims = Helpers.OSDToPrimList(OSDParser.DeserializeLLSDXml(xml)); }
|
||||
catch (Exception e) { return "Failed to deserialize " + filename + ": " + e.Message; }
|
||||
|
||||
// Build an organized structure from the imported prims
|
||||
|
||||
Reference in New Issue
Block a user