aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-11-22 16:59:50 +1000
committerDavid Walter Seikel2016-11-22 16:59:50 +1000
commit0ec89193fa9250d553e49e13af65f48e7592c150 (patch)
treee2b322ed23d98a73be5439475fee8b2b3837da03 /OpenSim/Region/CoreModules
parentReduce various console spam. (diff)
downloadopensim-SC_OLD-0ec89193fa9250d553e49e13af65f48e7592c150.zip
opensim-SC_OLD-0ec89193fa9250d553e49e13af65f48e7592c150.tar.gz
opensim-SC_OLD-0ec89193fa9250d553e49e13af65f48e7592c150.tar.bz2
opensim-SC_OLD-0ec89193fa9250d553e49e13af65f48e7592c150.tar.xz
Actually tell us what the problem object is with sculpties in map generation.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs19
1 files changed, 15 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs
index 9fdef6a..383a67f 100644
--- a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs
+++ b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs
@@ -444,12 +444,23 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
444 IJ2KDecoder imgDecoder = m_scene.RequestModuleInterface<IJ2KDecoder>(); 444 IJ2KDecoder imgDecoder = m_scene.RequestModuleInterface<IJ2KDecoder>();
445 if (imgDecoder != null) 445 if (imgDecoder != null)
446 { 446 {
447 Image sculpt = imgDecoder.DecodeToImage(sculptAsset); 447 try
448 if (sculpt != null)
449 { 448 {
450 renderMesh = m_primMesher.GenerateFacetedSculptMesh(omvPrim, (Bitmap)sculpt, 449 Image sculpt = imgDecoder.DecodeToImage(sculptAsset);
450 if (sculpt != null)
451 {
452 renderMesh = m_primMesher.GenerateFacetedSculptMesh(omvPrim, (Bitmap)sculpt,
451 DetailLevel.Medium); 453 DetailLevel.Medium);
452 sculpt.Dispose(); 454 sculpt.Dispose();
455 }
456 }
457 catch (Exception e)
458 {
459 Vector3 objectPos = prim.ParentGroup.RootPart.AbsolutePosition;
460//// TODO - print out owner of SceneObjectPart prim.
461 m_log.Warn(string.Format("[WARP 3D IMAGE MODULE]: Failed to decode asset {0} @ {1},{2},{3} - {4}.",
462 omvPrim.Sculpt.SculptTexture, objectPos.X, objectPos.Y, objectPos.Z,
463 prim.ParentGroup.RootPart.Name));
453 } 464 }
454 } 465 }
455 } 466 }