* Replacing Magic numbers with Enums

viewer-2-initial-appearance
Teravus Ovares (Dan Olivares) 2010-10-14 12:23:41 -04:00
parent 3cb716d291
commit c148ef25a9
2 changed files with 4 additions and 4 deletions

View File

@ -146,7 +146,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Assets
mesh = m_assetService.GetCached(meshID.ToString());
if (mesh != null)
{
if (mesh.Type == (sbyte)49) //TODO: Change to AssetType.Mesh when libomv gets updated!
if (mesh.Type == (SByte)AssetType.Mesh)
{
responsedata["str_response_string"] = Convert.ToBase64String(mesh.Data);
responsedata["content_type"] = "application/vnd.ll.mesh";
@ -167,7 +167,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Assets
mesh = m_assetService.Get(meshID.ToString());
if (mesh != null)
{
if (mesh.Type == (sbyte)49) //TODO: Change to AssetType.Mesh when libomv gets updated!
if (mesh.Type == (SByte)AssetType.Mesh)
{
responsedata["str_response_string"] = Convert.ToBase64String(mesh.Data);
responsedata["content_type"] = "application/vnd.ll.mesh";

View File

@ -233,8 +233,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Assets
}
else if (inventoryType == "mesh")
{
inType = 22; // TODO: Replace with appropriate type
assType = 49;// TODO: Replace with appropriate type
inType = (sbyte)InventoryType.Mesh;
assType = (sbyte)AssetType.Mesh;
}
AssetBase asset;