diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSLinksetConstraints.cs')
-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 | ||