aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Assets/GetMeshModule.cs4
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Assets/NewFileAgentInventoryVariablePriceModule.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Assets/GetMeshModule.cs b/OpenSim/Region/CoreModules/Avatar/Assets/GetMeshModule.cs
index b8aed0b..36aaab3 100644
--- a/OpenSim/Region/CoreModules/Avatar/Assets/GetMeshModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Assets/GetMeshModule.cs
@@ -146,7 +146,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Assets
146 mesh = m_assetService.GetCached(meshID.ToString()); 146 mesh = m_assetService.GetCached(meshID.ToString());
147 if (mesh != null) 147 if (mesh != null)
148 { 148 {
149 if (mesh.Type == (sbyte)49) //TODO: Change to AssetType.Mesh when libomv gets updated! 149 if (mesh.Type == (SByte)AssetType.Mesh)
150 { 150 {
151 responsedata["str_response_string"] = Convert.ToBase64String(mesh.Data); 151 responsedata["str_response_string"] = Convert.ToBase64String(mesh.Data);
152 responsedata["content_type"] = "application/vnd.ll.mesh"; 152 responsedata["content_type"] = "application/vnd.ll.mesh";
@@ -167,7 +167,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Assets
167 mesh = m_assetService.Get(meshID.ToString()); 167 mesh = m_assetService.Get(meshID.ToString());
168 if (mesh != null) 168 if (mesh != null)
169 { 169 {
170 if (mesh.Type == (sbyte)49) //TODO: Change to AssetType.Mesh when libomv gets updated! 170 if (mesh.Type == (SByte)AssetType.Mesh)
171 { 171 {
172 responsedata["str_response_string"] = Convert.ToBase64String(mesh.Data); 172 responsedata["str_response_string"] = Convert.ToBase64String(mesh.Data);
173 responsedata["content_type"] = "application/vnd.ll.mesh"; 173 responsedata["content_type"] = "application/vnd.ll.mesh";
diff --git a/OpenSim/Region/CoreModules/Avatar/Assets/NewFileAgentInventoryVariablePriceModule.cs b/OpenSim/Region/CoreModules/Avatar/Assets/NewFileAgentInventoryVariablePriceModule.cs
index d644cdd..af26b2b 100644
--- a/OpenSim/Region/CoreModules/Avatar/Assets/NewFileAgentInventoryVariablePriceModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Assets/NewFileAgentInventoryVariablePriceModule.cs
@@ -233,8 +233,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Assets
233 } 233 }
234 else if (inventoryType == "mesh") 234 else if (inventoryType == "mesh")
235 { 235 {
236 inType = 22; // TODO: Replace with appropriate type 236 inType = (sbyte)InventoryType.Mesh;
237 assType = 49;// TODO: Replace with appropriate type 237 assType = (sbyte)AssetType.Mesh;
238 } 238 }
239 239
240 AssetBase asset; 240 AssetBase asset;