diff options
author | UbitUmarov | 2015-12-24 01:21:15 +0000 |
---|---|---|
committer | UbitUmarov | 2015-12-24 01:21:15 +0000 |
commit | 37cb24da60391d692f2c1266eecdc17aa6db2838 (patch) | |
tree | a0a5b2c42c86885ed1d48ec3012a300eb7d90017 /OpenSim/Region/PhysicsModules/ubOde | |
parent | fix avatar movetotarget that got broken with changes on significant movement.... (diff) | |
download | opensim-SC-37cb24da60391d692f2c1266eecdc17aa6db2838.zip opensim-SC-37cb24da60391d692f2c1266eecdc17aa6db2838.tar.gz opensim-SC-37cb24da60391d692f2c1266eecdc17aa6db2838.tar.bz2 opensim-SC-37cb24da60391d692f2c1266eecdc17aa6db2838.tar.xz |
add prim estimated center of mass correction also for tortured prims meshs. Not fully tested
Diffstat (limited to 'OpenSim/Region/PhysicsModules/ubOde')
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODEMeshWorker.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEMeshWorker.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEMeshWorker.cs index 40b5ef7..a977473 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODEMeshWorker.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEMeshWorker.cs | |||
@@ -410,6 +410,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
410 | if (!needsMeshing(pbs)) | 410 | if (!needsMeshing(pbs)) |
411 | { | 411 | { |
412 | repData.meshState = MeshState.noNeed; | 412 | repData.meshState = MeshState.noNeed; |
413 | repData.hasOBB = false; | ||
413 | return; | 414 | return; |
414 | } | 415 | } |
415 | 416 | ||
@@ -460,6 +461,9 @@ namespace OpenSim.Region.PhysicsModule.ubOde | |||
460 | 461 | ||
461 | repData.meshState = MeshState.AssetOK; | 462 | repData.meshState = MeshState.AssetOK; |
462 | repData.mesh = mesh; | 463 | repData.mesh = mesh; |
464 | repData.OBB = mesh.GetOBB(); | ||
465 | repData.OBBOffset = mesh.GetCentroid(); | ||
466 | repData.hasOBB = true; | ||
463 | 467 | ||
464 | if (pbs.SculptEntry) | 468 | if (pbs.SculptEntry) |
465 | { | 469 | { |