diff options
author | Melanie | 2012-09-02 22:15:55 +0100 |
---|---|---|
committer | Melanie | 2012-09-02 22:15:55 +0100 |
commit | e2e8b0905950a42fa254d8448027332567470d1e (patch) | |
tree | 03023da2f0e01d943231d4fd517b299266fd0645 /OpenSim/Region/Physics/BulletSPlugin/BSConstraint.cs | |
parent | Merge branch 'master' into careminster (diff) | |
parent | BulletSim: update the SOs and DLLs (diff) | |
download | opensim-SC-e2e8b0905950a42fa254d8448027332567470d1e.zip opensim-SC-e2e8b0905950a42fa254d8448027332567470d1e.tar.gz opensim-SC-e2e8b0905950a42fa254d8448027332567470d1e.tar.bz2 opensim-SC-e2e8b0905950a42fa254d8448027332567470d1e.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSConstraint.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSConstraint.cs b/OpenSim/Region/Physics/BulletSPlugin/BSConstraint.cs index 25084d8..d9270d1 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSConstraint.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSConstraint.cs | |||
@@ -48,11 +48,10 @@ public abstract class BSConstraint : IDisposable | |||
48 | { | 48 | { |
49 | if (m_enabled) | 49 | if (m_enabled) |
50 | { | 50 | { |
51 | // BulletSimAPI.RemoveConstraint(m_world.ID, m_body1.ID, m_body2.ID); | 51 | m_enabled = false; |
52 | bool success = BulletSimAPI.DestroyConstraint2(m_world.Ptr, m_constraint.Ptr); | 52 | bool success = BulletSimAPI.DestroyConstraint2(m_world.Ptr, m_constraint.Ptr); |
53 | m_world.scene.DetailLog("{0},BSConstraint.Dispose,taint,body1={1},body2={2},success={3}", BSScene.DetailLogZero, m_body1.ID, m_body2.ID, success); | 53 | m_world.scene.DetailLog("{0},BSConstraint.Dispose,taint,body1={1},body2={2},success={3}", BSScene.DetailLogZero, m_body1.ID, m_body2.ID, success); |
54 | m_constraint.Ptr = System.IntPtr.Zero; | 54 | m_constraint.Ptr = System.IntPtr.Zero; |
55 | m_enabled = false; | ||
56 | } | 55 | } |
57 | } | 56 | } |
58 | 57 | ||