Merge branch 'master' of ssh://opensimulator.org/var/git/opensim

bullet-2.82
Diva Canto 2014-05-27 10:13:43 -07:00
commit 987c56984d
1 changed files with 20 additions and 14 deletions

View File

@ -638,6 +638,8 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
lock (CollisionLock) lock (CollisionLock)
{ {
if (collidersCount > 0) if (collidersCount > 0)
{
lock (PhysObjects)
{ {
for (int ii = 0; ii < collidersCount; ii++) for (int ii = 0; ii < collidersCount; ii++)
{ {
@ -651,12 +653,15 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
} }
} }
} }
}
// If any of the objects had updated properties, tell the managed objects about the update // If any of the objects had updated properties, tell the managed objects about the update
// and remember that there was a change so it will be passed to the simulator. // and remember that there was a change so it will be passed to the simulator.
lock (UpdateLock) lock (UpdateLock)
{ {
if (updatedEntityCount > 0) if (updatedEntityCount > 0)
{
lock (PhysObjects)
{ {
for (int ii = 0; ii < updatedEntityCount; ii++) for (int ii = 0; ii < updatedEntityCount; ii++)
{ {
@ -670,6 +675,7 @@ public sealed class BSScene : PhysicsScene, IPhysicsParameters
} }
} }
} }
}
// Some actors want to know when the simulation step is complete. // Some actors want to know when the simulation step is complete.
TriggerPostStepEvent(timeStep); TriggerPostStepEvent(timeStep);