add a missing return on a mesh decode error in ubOdemeshmerizer

0.9.0.1-postfixes
UbitUmarov 2017-12-14 05:36:15 +00:00
parent 17b79cec91
commit 201c916670
1 changed files with 2 additions and 1 deletions

View File

@ -340,7 +340,7 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
faces = new List<Face>(); faces = new List<Face>();
OSD meshOsd = null; OSD meshOsd = null;
if (primShape.SculptData.Length <= 0) if (primShape.SculptData == null || primShape.SculptData.Length <= 0)
{ {
// m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName); // m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName);
return false; return false;
@ -363,6 +363,7 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
catch (Exception e) catch (Exception e)
{ {
m_log.Error("[MESH]: Exception deserializing mesh asset header:" + e.ToString()); m_log.Error("[MESH]: Exception deserializing mesh asset header:" + e.ToString());
return false;
} }
start = data.Position; start = data.Position;