diff options
author | Robert Adams | 2013-08-06 10:32:56 -0700 |
---|---|---|
committer | Robert Adams | 2013-09-11 09:11:34 -0700 |
commit | 725751fd6c0101b8610e84716d28b6af91e20b61 (patch) | |
tree | c43b6528c292e5991d4cf44741cf9702b3ab75e5 /OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs | |
parent | chaning the default max_distance to 16383 as we actually start counting at ze... (diff) | |
download | opensim-SC-725751fd6c0101b8610e84716d28b6af91e20b61.zip opensim-SC-725751fd6c0101b8610e84716d28b6af91e20b61.tar.gz opensim-SC-725751fd6c0101b8610e84716d28b6af91e20b61.tar.bz2 opensim-SC-725751fd6c0101b8610e84716d28b6af91e20b61.tar.xz |
BulletSim: fixes for change linkset implementation of physical linksets.
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs index 4bac222..d4ee27d 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs | |||
@@ -224,7 +224,7 @@ public sealed class BSLinksetConstraints : BSLinkset | |||
224 | 224 | ||
225 | // Remove the specified child from the linkset. | 225 | // Remove the specified child from the linkset. |
226 | // Safe to call even if the child is not really in my linkset. | 226 | // Safe to call even if the child is not really in my linkset. |
227 | protected override void RemoveChildFromLinkset(BSPrimLinkable child) | 227 | protected override void RemoveChildFromLinkset(BSPrimLinkable child, bool inTaintTime) |
228 | { | 228 | { |
229 | if (m_children.Remove(child)) | 229 | if (m_children.Remove(child)) |
230 | { | 230 | { |
@@ -236,7 +236,7 @@ public sealed class BSLinksetConstraints : BSLinkset | |||
236 | rootx.LocalID, rootx.PhysBody.AddrString, | 236 | rootx.LocalID, rootx.PhysBody.AddrString, |
237 | childx.LocalID, childx.PhysBody.AddrString); | 237 | childx.LocalID, childx.PhysBody.AddrString); |
238 | 238 | ||
239 | m_physicsScene.TaintedObject("BSLinksetConstraints.RemoveChildFromLinkset", delegate() | 239 | m_physicsScene.TaintedObject(inTaintTime, "BSLinksetConstraints.RemoveChildFromLinkset", delegate() |
240 | { | 240 | { |
241 | PhysicallyUnlinkAChildFromRoot(rootx, childx); | 241 | PhysicallyUnlinkAChildFromRoot(rootx, childx); |
242 | }); | 242 | }); |
@@ -382,9 +382,9 @@ public sealed class BSLinksetConstraints : BSLinkset | |||
382 | Rebuilding = true; | 382 | Rebuilding = true; |
383 | 383 | ||
384 | // There is no reason to build all this physical stuff for a non-physical linkset. | 384 | // There is no reason to build all this physical stuff for a non-physical linkset. |
385 | if (!LinksetRoot.IsPhysicallyActive) | 385 | if (!LinksetRoot.IsPhysicallyActive || !HasAnyChildren) |
386 | { | 386 | { |
387 | DetailLog("{0},BSLinksetConstraint.RecomputeLinksetCompound,notPhysical", LinksetRoot.LocalID); | 387 | DetailLog("{0},BSLinksetConstraint.RecomputeLinksetCompound,notPhysicalOrNoChildren", LinksetRoot.LocalID); |
388 | return; // Note the 'finally' clause at the botton which will get executed. | 388 | return; // Note the 'finally' clause at the botton which will get executed. |
389 | } | 389 | } |
390 | 390 | ||