ubOde: if a mesh does not contain data for shape type PRIM, dont collide as convex as before but just don't collide matching the type NONE viewers display in this case

melanie
UbitUmarov 2016-11-02 22:33:32 +00:00
parent 9480da06b9
commit f29d5ad662
1 changed files with 6 additions and 1 deletions

View File

@ -443,6 +443,11 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
if (physicsParms != null)
usemesh = true;
else
{
m_log.WarnFormat("[MESH]: Data for PRIM shape type not found for prim {0}",primName);
return false;
}
}
if(!usemesh && (map.ContainsKey("physics_convex")))
@ -451,7 +456,7 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing
if (physicsParms == null)
{
m_log.WarnFormat("[MESH]: unknown mesh type for {0}",primName);
m_log.WarnFormat("[MESH]: unknown mesh type for prim {0}",primName);
return false;
}