aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
diff options
context:
space:
mode:
authorRobert Adams2015-08-24 06:39:06 -0700
committerRobert Adams2015-08-24 06:39:06 -0700
commit9a490ad2b979552c04ef0bf0d881e8b9643bebba (patch)
tree13114282d6c7a84734802621e58f76b99355e949 /OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
parentBulletSim: delay adding a scene presence to the list of presences (diff)
downloadopensim-SC-9a490ad2b979552c04ef0bf0d881e8b9643bebba.zip
opensim-SC-9a490ad2b979552c04ef0bf0d881e8b9643bebba.tar.gz
opensim-SC-9a490ad2b979552c04ef0bf0d881e8b9643bebba.tar.bz2
opensim-SC-9a490ad2b979552c04ef0bf0d881e8b9643bebba.tar.xz
Revert "BulletSim: delay adding a scene presence to the list of presences"
Remove these changes until the region crossing problems can be figured out. This reverts commit 062ec0efbda0e4ca6df5541039569e023d0d0e79.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSScene.cs')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSScene.cs27
1 files changed, 13 insertions, 14 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
index 2a8a6a5..8a19944 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
@@ -477,19 +477,16 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
477 477
478 if (!m_initialized) return null; 478 if (!m_initialized) return null;
479 479
480 BSCharacter actor = new BSCharacter(localID, avName, this, position, velocity, size, isFlying, 480 BSCharacter actor = new BSCharacter(localID, avName, this, position, velocity, size, isFlying);
481 (aa) => 481 lock (PhysObjects)
482 { 482 PhysObjects.Add(localID, actor);
483 // While the actor exists, don't add it to the active avatar lists until completely initialized 483
484 lock (PhysObjects) 484 // TODO: Remove kludge someday.
485 PhysObjects.Add(localID, aa); 485 // We must generate a collision for avatars whether they collide or not.
486 // This is required by OpenSim to update avatar animations, etc.
487 lock (AvatarsInSceneLock)
488 AvatarsInScene.Add(actor);
486 489
487 // TODO: Remove kludge someday.
488 // We must generate a collision for avatars whether they collide or not.
489 // This is required by OpenSim to update avatar animations, etc.
490 lock (AvatarsInSceneLock)
491 AvatarsInScene.Add(aa);
492 });
493 return actor; 490 return actor;
494 } 491 }
495 492
@@ -833,8 +830,10 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
833 if (collider.Collide(collidingWith, collidee, collidePoint, collideNormal, penetration)) 830 if (collider.Collide(collidingWith, collidee, collidePoint, collideNormal, penetration))
834 { 831 {
835 // If a collision was 'good', remember to send it to the simulator 832 // If a collision was 'good', remember to send it to the simulator
836 // Note that 'CollisionLock' was locked before the call to 'SendCollsions' 833 lock (CollisionLock)
837 ObjectsWithCollisions.Add(collider); 834 {
835 ObjectsWithCollisions.Add(collider);
836 }
838 } 837 }
839 } 838 }
840 839