add prim estimated center of mass correction also for tortured prims meshs. Not fully tested

LSLKeyTest
UbitUmarov 2015-12-24 01:21:15 +00:00
parent 24aa529715
commit 37cb24da60
1 changed files with 4 additions and 0 deletions

View File

@ -410,6 +410,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
if (!needsMeshing(pbs))
{
repData.meshState = MeshState.noNeed;
repData.hasOBB = false;
return;
}
@ -460,6 +461,9 @@ namespace OpenSim.Region.PhysicsModule.ubOde
repData.meshState = MeshState.AssetOK;
repData.mesh = mesh;
repData.OBB = mesh.GetOBB();
repData.OBBOffset = mesh.GetCentroid();
repData.hasOBB = true;
if (pbs.SculptEntry)
{