diff options
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs index 7dddab6..faa9488 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | |||
@@ -2521,7 +2521,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2521 | prm.m_collisionCategories = m_collisionCategories; | 2521 | prm.m_collisionCategories = m_collisionCategories; |
2522 | prm.m_collisionFlags = m_collisionFlags; | 2522 | prm.m_collisionFlags = m_collisionFlags; |
2523 | 2523 | ||
2524 | if (prm.prim_geom != null) | 2524 | if (prm.prim_geom != IntPtr.Zero) |
2525 | { | 2525 | { |
2526 | 2526 | ||
2527 | if (prm.m_NoColide) | 2527 | if (prm.m_NoColide) |
@@ -2542,7 +2542,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2542 | // ((OdePrim)_parent).ChildSelectedChange(true); | 2542 | // ((OdePrim)_parent).ChildSelectedChange(true); |
2543 | 2543 | ||
2544 | 2544 | ||
2545 | if (prim_geom != null) | 2545 | if (prim_geom != IntPtr.Zero) |
2546 | { | 2546 | { |
2547 | if (m_NoColide) | 2547 | if (m_NoColide) |
2548 | { | 2548 | { |
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs index f449099..561ab1c 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs | |||
@@ -555,7 +555,6 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
555 | break; | 555 | break; |
556 | 556 | ||
557 | default: | 557 | default: |
558 | return; | ||
559 | break; | 558 | break; |
560 | } | 559 | } |
561 | } | 560 | } |
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs index f8d7195..8878820 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | |||
@@ -515,7 +515,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
515 | odetimestepMS = (int)(1000.0f * ODE_STEPSIZE +0.5f); | 515 | odetimestepMS = (int)(1000.0f * ODE_STEPSIZE +0.5f); |
516 | 516 | ||
517 | ContactgeomsArray = Marshal.AllocHGlobal(contactsPerCollision * d.ContactGeom.unmanagedSizeOf); | 517 | ContactgeomsArray = Marshal.AllocHGlobal(contactsPerCollision * d.ContactGeom.unmanagedSizeOf); |
518 | GlobalContactsArray = GlobalContactsArray = Marshal.AllocHGlobal(maxContactsbeforedeath * d.Contact.unmanagedSizeOf); | 518 | GlobalContactsArray = Marshal.AllocHGlobal(maxContactsbeforedeath * d.Contact.unmanagedSizeOf); |
519 | 519 | ||
520 | m_materialContactsData[(int)Material.Stone].mu = 0.8f; | 520 | m_materialContactsData[(int)Material.Stone].mu = 0.8f; |
521 | m_materialContactsData[(int)Material.Stone].bounce = 0.4f; | 521 | m_materialContactsData[(int)Material.Stone].bounce = 0.4f; |