From 3642198838164cb883b95d918d968c9febd7e74c Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Sun, 30 Nov 2014 11:29:44 -0800 Subject: BulletSim: move detail log of InternalScheduleRebuild to reduce log file spam --- OpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/Physics') diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs index 049f825..b444446 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs @@ -100,9 +100,6 @@ public sealed class BSLinksetCompound : BSLinkset // Schedule a refresh to happen after all the other taint processing. private void ScheduleRebuild(BSPrimLinkable requestor) { - DetailLog("{0},BSLinksetCompound.ScheduleRebuild,,rebuilding={1},hasChildren={2},actuallyScheduling={3}", - requestor.LocalID, Rebuilding, HasAnyChildren, (!Rebuilding && HasAnyChildren)); - // When rebuilding, it is possible to set properties that would normally require a rebuild. // If already rebuilding, don't request another rebuild. // If a linkset with just a root prim (simple non-linked prim) don't bother rebuilding. @@ -115,8 +112,11 @@ public sealed class BSLinksetCompound : BSLinkset } } + // Must be called with m_linksetActivityLock or race conditions will haunt you. private void InternalScheduleRebuild(BSPrimLinkable requestor) { + DetailLog("{0},BSLinksetCompound.InternalScheduleRebuild,,rebuilding={1},hasChildren={2}", + requestor.LocalID, Rebuilding, HasAnyChildren); RebuildScheduled = true; m_physicsScene.PostTaintObject("BSLinksetCompound.ScheduleRebuild", LinksetRoot.LocalID, delegate() { @@ -396,7 +396,7 @@ public sealed class BSLinksetCompound : BSLinkset // Get a reference to the shape of the child for adding of that shape to the linkset compound shape BSShape childShape = cPrim.PhysShape.GetReference(m_physicsScene, cPrim); - // Offset the child shape from the center-of-mass and rotate it to vehicle relative. + // Offset the child shape from the center-of-mass and rotate it to root relative. OMV.Vector3 offsetPos = (cPrim.RawPosition - origRootPosition) * invRootOrientation - centerDisplacementV; OMV.Quaternion offsetRot = OMV.Quaternion.Normalize(cPrim.RawOrientation) * invRootOrientation; @@ -435,7 +435,7 @@ public sealed class BSLinksetCompound : BSLinkset LogHeader, LinksetRoot.Name, cPrim.LinksetChildIndex, childShape); // This causes the loop to bail on building the rest of this linkset. - // The rebuild operation should fix it up or declare the object unbuildable. + // The rebuild operation will fix it up next tick or declare the object unbuildable. return true; } -- cgit v1.1