diff options
-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 | { |